text
stringlengths 293
1.24k
|
---|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_87 (game INTEGER, opponent VARCHAR)
### Question:
what is the game when the opponent is @ chicago stags?
### Answer:
SELECT SUM(game) FROM table_name_87 WHERE opponent = "@ chicago stags" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_79 (silver INTEGER, bronze VARCHAR, total VARCHAR)
### Question:
What is the average number of silver medals of the nation with 3 bronzes and more than 4 total medals?
### Answer:
SELECT AVG(silver) FROM table_name_79 WHERE bronze = 3 AND total > 4 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_34 (rank INTEGER, athlete VARCHAR)
### Question:
what is the highest rank for tim maeyens?
### Answer:
SELECT MAX(rank) FROM table_name_34 WHERE athlete = "tim maeyens" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_50 (loss VARCHAR, attendance INTEGER)
### Question:
How many losses have more than 45,036 attendance?
### Answer:
SELECT loss FROM table_name_50 WHERE attendance > 45 OFFSET 036 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_20971444_3 (rank__timeslot_ VARCHAR, rating__18_49_ VARCHAR)
### Question:
Name the total number of rank timeslot for 18-49 being 3.1
### Answer:
SELECT COUNT(rank__timeslot_) FROM table_20971444_3 WHERE rating__18_49_ = "3.1" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_77 (score VARCHAR, away_team VARCHAR)
### Question:
What was the score of the game when Blackpool was away?
### Answer:
SELECT score FROM table_name_77 WHERE away_team = "blackpool" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_52 (season INTEGER, wins VARCHAR, races VARCHAR, series VARCHAR)
### Question:
What is the smallest season with 6 races, 2 wins, and a Series of all-japan gt championship>
### Answer:
SELECT MIN(season) FROM table_name_52 WHERE races = "6" AND series = "all-japan gt championship" AND wins = "2" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_16162581_1 (text VARCHAR, simplified_characters VARCHAR)
### Question:
Name the text for 心猿意马
### Answer:
SELECT text FROM table_16162581_1 WHERE simplified_characters = "心猿意马" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_20 (opponent VARCHAR, record VARCHAR)
### Question:
Name the opponent with record of 12-18
### Answer:
SELECT opponent FROM table_name_20 WHERE record = "12-18" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_10705060_1 (points VARCHAR, team_name VARCHAR)
### Question:
what is the score for the dams?
### Answer:
SELECT points FROM table_10705060_1 WHERE team_name = "DAMS" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_35 (total VARCHAR, nation VARCHAR, silver VARCHAR)
### Question:
What is the total number of Total when Germany is the nation with less than 1 silver?
### Answer:
SELECT COUNT(total) FROM table_name_35 WHERE nation = "germany" AND silver < 1 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_49 (fastest_lap VARCHAR, winning_driver VARCHAR)
### Question:
What is the fastest lap for Seiji Ara?
### Answer:
SELECT fastest_lap FROM table_name_49 WHERE winning_driver = "seiji ara" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_36 (shot_pct INTEGER, blank_ends VARCHAR, ends_lost VARCHAR, skip VARCHAR)
### Question:
What is the shot % with a 44+ Ends Lost, skip Cathy King, and smaller than 13 Black Ends?
### Answer:
SELECT MAX(shot_pct) FROM table_name_36 WHERE ends_lost > 44 AND skip = "cathy king" AND blank_ends < 13 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_49 (player VARCHAR, place VARCHAR, country VARCHAR)
### Question:
Which player from the United States is in a place of T2?
### Answer:
SELECT player FROM table_name_49 WHERE place = "t2" AND country = "united states" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_11869952_1 (institutional_authority VARCHAR, rocket_launch VARCHAR)
### Question:
Which authority has a rocket launch called rehnuma-8?
### Answer:
SELECT institutional_authority FROM table_11869952_1 WHERE rocket_launch = "Rehnuma-8" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_90 (home_team VARCHAR, away_team VARCHAR)
### Question:
What is the Home team with an Away team that is wrexham?
### Answer:
SELECT home_team FROM table_name_90 WHERE away_team = "wrexham" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_51 (Chinese VARCHAR, index VARCHAR, status VARCHAR, country VARCHAR)
### Question:
What is the Chinese name of the Eliminated player from Singapore in Index f9?
### Answer:
SELECT Chinese AS name FROM table_name_51 WHERE status = "eliminated" AND country = "singapore" AND index = "f9" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_66 (basin VARCHAR, in_state_area VARCHAR)
### Question:
What is the name of the basin with an in-state area of 071 238km 2 92mi 2?
### Answer:
SELECT basin FROM table_name_66 WHERE in_state_area = "071 238km 2 92mi 2" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_1233808_2 (date_and_time VARCHAR, competition VARCHAR)
### Question:
For the competition Mithras Cup 2nd Rd (2nd Leg), what is the date and time?
### Answer:
SELECT date_and_time FROM table_1233808_2 WHERE competition = "Mithras Cup 2nd Rd (2nd Leg)" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_65 (bronze VARCHAR, total VARCHAR, nation VARCHAR)
### Question:
How many bronze medals for West Germany having a total more than 2?
### Answer:
SELECT COUNT(bronze) FROM table_name_65 WHERE total > 2 AND nation = "west germany" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_28286776_12 (goal_s_ INTEGER, club_s_ VARCHAR)
### Question:
How many goals did the player from Ipswich town score?
### Answer:
SELECT MIN(goal_s_) FROM table_28286776_12 WHERE club_s_ = "Ipswich Town" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_2803106_1 (tonioli VARCHAR, week__number VARCHAR, dixon VARCHAR)
### Question:
On week 11 when Dixon scored an 8, what was tonioli's score?
### Answer:
SELECT tonioli FROM table_2803106_1 WHERE week__number = 11 AND dixon = "8" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_28846752_9 (player VARCHAR, economy VARCHAR)
### Question:
Who is the player when the economy is 6.14?
### Answer:
SELECT player FROM table_28846752_9 WHERE economy = "6.14" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_2187178_1 (truck_s_ VARCHAR, crew_chief VARCHAR)
### Question:
Name the trucks for scott neal
### Answer:
SELECT truck_s_ FROM table_2187178_1 WHERE crew_chief = "Scott Neal" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_18 (pick INTEGER, school VARCHAR)
### Question:
What is the highest pick from Washington?
### Answer:
SELECT MAX(pick) FROM table_name_18 WHERE school = "washington" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_1305623_12 (gold_medals VARCHAR, total_medals VARCHAR)
### Question:
How many gold medals does each school who has a total of 1 medal have?
### Answer:
SELECT gold_medals FROM table_1305623_12 WHERE total_medals = 1 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_35 (poles INTEGER, podiums VARCHAR, races VARCHAR)
### Question:
What is the sum of Poles, when Podiums is 0, and when Races is 17?
### Answer:
SELECT SUM(poles) FROM table_name_35 WHERE podiums = 0 AND races = 17 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_25017530_5 (pick__number INTEGER, player VARCHAR)
### Question:
Name the least pick number for steven turner
### Answer:
SELECT MIN(pick__number) FROM table_25017530_5 WHERE player = "Steven Turner" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_90 (record VARCHAR, visitor VARCHAR)
### Question:
What was the record when the visitor was Atlanta Hawks?
### Answer:
SELECT record FROM table_name_90 WHERE visitor = "atlanta hawks" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_40 (tie_no VARCHAR, away_team VARCHAR)
### Question:
What is the Tie Number when Barnsley was the away team?
### Answer:
SELECT tie_no FROM table_name_40 WHERE away_team = "barnsley" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_23 (average VARCHAR, goals INTEGER)
### Question:
What is the average number for goals less than 73?
### Answer:
SELECT COUNT(average) FROM table_name_23 WHERE goals < 73 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_48 (swing_to_gain INTEGER, constituency VARCHAR)
### Question:
Can you tell me the sum of Swing to gain that has Constituency of caithness, sutherland and easter ross?
### Answer:
SELECT SUM(swing_to_gain) FROM table_name_48 WHERE constituency = "caithness, sutherland and easter ross" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_94 (opponent VARCHAR, round VARCHAR)
### Question:
What is Opponent, when Round is World Group?
### Answer:
SELECT opponent FROM table_name_94 WHERE round = "world group" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_1 (upper_index_kcal__nm_3 INTEGER, upper_index_mj__nm_3 VARCHAR, lower_index_mj__nm_3 VARCHAR, fuel_gas VARCHAR)
### Question:
What is the entry for Upper index Kcal/ Nm 3 for the row with an entry that has a Lower index MJ/ Nm 3 larger than 47.91, for propylene, and an Upper index MJ/ Nm 3 larger than 77.04?
### Answer:
SELECT SUM(upper_index_kcal__nm_3) FROM table_name_1 WHERE lower_index_mj__nm_3 > 47.91 AND fuel_gas = "propylene" AND upper_index_mj__nm_3 > 77.04 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_71 (stadium VARCHAR, score VARCHAR)
### Question:
What stadium held the game that had a score of 6–3?
### Answer:
SELECT stadium FROM table_name_71 WHERE score = "6–3" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_72 (category VARCHAR, nomination VARCHAR)
### Question:
What category was danson tang nominated?
### Answer:
SELECT category FROM table_name_72 WHERE nomination = "danson tang" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_11 (year VARCHAR, rank VARCHAR, out_of VARCHAR)
### Question:
Tell me the year for rank more than 35 and out of 167
### Answer:
SELECT year FROM table_name_11 WHERE rank > 35 AND out_of = 167 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_2865020_5 (average VARCHAR)
### Question:
What 2003-2004 values are associated with an average of 1.377?
### Answer:
SELECT 2003 AS _04 FROM table_2865020_5 WHERE average = "1.377" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_2015453_1 (attendance INTEGER)
### Question:
What was the largest attendance?
### Answer:
SELECT MAX(attendance) FROM table_2015453_1 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_6 (rank INTEGER, notes VARCHAR, country VARCHAR)
### Question:
What is the sum of the rank of the rower with an r note from Australia?
### Answer:
SELECT SUM(rank) FROM table_name_6 WHERE notes = "r" AND country = "australia" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_40 (school_club_team VARCHAR, player VARCHAR)
### Question:
What school/club team did Amal McCaskill play for?
### Answer:
SELECT school_club_team FROM table_name_40 WHERE player = "amal mccaskill" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_20 (episodes VARCHAR, title VARCHAR)
### Question:
what episode is called jewboy
### Answer:
SELECT episodes FROM table_name_20 WHERE title = "jewboy" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_4 (gold INTEGER, silver VARCHAR, bronze VARCHAR)
### Question:
What is the fewest gold medals for the nation with 4 silvers and more than 4 bronze?
### Answer:
SELECT MIN(gold) FROM table_name_4 WHERE silver = 4 AND bronze > 4 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_52 (event VARCHAR, res VARCHAR, opponent VARCHAR)
### Question:
Which event resulted in loss with an Opponent of maurice smith?
### Answer:
SELECT event FROM table_name_52 WHERE res = "loss" AND opponent = "maurice smith" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_18198579_2 (no INTEGER, tournament VARCHAR)
### Question:
List the total numbers of Evian Masters tournaments.
### Answer:
SELECT MAX(no) FROM table_18198579_2 WHERE tournament = "Evian Masters" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_225206_3 (vacator VARCHAR, reason_for_change VARCHAR)
### Question:
Who was the vacator when the reason for change was failure to elect?
### Answer:
SELECT vacator FROM table_225206_3 WHERE reason_for_change = "Failure to elect" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE prereq (course_id VARCHAR); CREATE TABLE course (title VARCHAR, course_id VARCHAR)
### Question:
Find the title of courses that have two prerequisites?
### Answer:
SELECT T1.title FROM course AS T1 JOIN prereq AS T2 ON T1.course_id = T2.course_id GROUP BY T2.course_id HAVING COUNT(*) = 2 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_11 (home_team VARCHAR, venue VARCHAR)
### Question:
What team has theoir home games in the venue of gold coast convention centre?
### Answer:
SELECT home_team FROM table_name_11 WHERE venue = "gold coast convention centre" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_74 (socialist_ticket VARCHAR, law_preservation_ticket VARCHAR, socialist_labor_ticket VARCHAR)
### Question:
Who's the Socialist ticket with a Law Preservation ticket of (none), and a Socialist Labor ticket of belle j. rosen?
### Answer:
SELECT socialist_ticket FROM table_name_74 WHERE law_preservation_ticket = "(none)" AND socialist_labor_ticket = "belle j. rosen" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_27011761_2 (train_no VARCHAR, arrival VARCHAR)
### Question:
How many trains arrive at 11:00?
### Answer:
SELECT COUNT(train_no) FROM table_27011761_2 WHERE arrival = "11:00" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_86 (bronze INTEGER, total VARCHAR)
### Question:
What was the bronze medal count of the team that finished with 47 total medals?
### Answer:
SELECT AVG(bronze) FROM table_name_86 WHERE total = 47 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_90 (week INTEGER, attendance INTEGER)
### Question:
Which Week has an Attendance larger than 63,369?
### Answer:
SELECT MIN(week) FROM table_name_90 WHERE attendance > 63 OFFSET 369 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_26 (away_team VARCHAR, home_team VARCHAR)
### Question:
What was the away team score at Hawthorn?
### Answer:
SELECT away_team AS score FROM table_name_26 WHERE home_team = "hawthorn" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE dogs (name VARCHAR, dog_id VARCHAR, cost_of_treatment INTEGER); CREATE TABLE treatments (name VARCHAR, dog_id VARCHAR, cost_of_treatment INTEGER)
### Question:
Which dogs have not cost their owner more than 1000 for treatment ? List the dog names .
### Answer:
SELECT name FROM dogs WHERE NOT dog_id IN (SELECT dog_id FROM treatments GROUP BY dog_id HAVING SUM(cost_of_treatment) > 1000) |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_54 (opponent VARCHAR, res VARCHAR, event VARCHAR)
### Question:
Who was the fight against when loss was the result at the Gladiator Challenge 87: Collision Course event?
### Answer:
SELECT opponent FROM table_name_54 WHERE res = "loss" AND event = "gladiator challenge 87: collision course" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_81 (hometown_highschool VARCHAR, weight VARCHAR, name VARCHAR)
### Question:
What was the hometown/high school of 170 pound player tyler wilson?
### Answer:
SELECT hometown_highschool FROM table_name_81 WHERE weight = 170 AND name = "tyler wilson" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_23 (surface VARCHAR, score_in_final VARCHAR)
### Question:
What is Surface, when Score in Final is 3-6, 6-3, 6-2?
### Answer:
SELECT surface FROM table_name_23 WHERE score_in_final = "3-6, 6-3, 6-2" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_13943239_1 (viewers__millions_ VARCHAR, episode VARCHAR)
### Question:
How much audience did the 7th Pride of Britain Awards ceremony have?
### Answer:
SELECT COUNT(viewers__millions_) FROM table_13943239_1 WHERE episode = "7th Pride of Britain Awards" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_57 (score VARCHAR, player VARCHAR)
### Question:
What was Tiger Woods' score?
### Answer:
SELECT score FROM table_name_57 WHERE player = "tiger woods" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_17972193_1 (attendance VARCHAR, date VARCHAR)
### Question:
How many total numbers of attendance are there during the game in October 27?
### Answer:
SELECT COUNT(attendance) FROM table_17972193_1 WHERE date = "October 27" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_59 (against VARCHAR, venue VARCHAR, date VARCHAR)
### Question:
What is the total number of Against that were played in the H Venue on 26 february 1949?
### Answer:
SELECT COUNT(against) FROM table_name_59 WHERE venue = "h" AND date = "26 february 1949" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_85 (record VARCHAR, round VARCHAR, res VARCHAR, time VARCHAR)
### Question:
What is the record of the match with a win res., a 5:00 time, and more than 3 rounds?
### Answer:
SELECT record FROM table_name_85 WHERE res = "win" AND time = "5:00" AND round > 3 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_5 (record VARCHAR, game VARCHAR, opponent VARCHAR)
### Question:
What is the Record of the Game after 40 with New York Rangers as Opponent?
### Answer:
SELECT record FROM table_name_5 WHERE game > 40 AND opponent = "new york rangers" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_65 (form_factor VARCHAR, capacities__gb_ VARCHAR)
### Question:
What form factor has capacities at 60/120/180/240?
### Answer:
SELECT form_factor FROM table_name_65 WHERE capacities__gb_ = "60/120/180/240" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_85 (t_papadopoulos VARCHAR, i_kasoulidis VARCHAR)
### Question:
What was the percentage for T. Papadopoulos when I. Kasoulidis was 27.1%?
### Answer:
SELECT t_papadopoulos FROM table_name_85 WHERE i_kasoulidis = "27.1%" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_1618358_1 (stamp_duty_reserve_tax VARCHAR, over_total_tax_revenue__in__percentage_ VARCHAR)
### Question:
What is the stamp duty reserve tax when the percentage over total tax revenue is 0.79?
### Answer:
SELECT stamp_duty_reserve_tax FROM table_1618358_1 WHERE over_total_tax_revenue__in__percentage_ = "0.79" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_90 (champion VARCHAR, runner_up VARCHAR, year VARCHAR)
### Question:
Who was the champion earlier than 1978 when the runner-up was Jimmy Connors?
### Answer:
SELECT champion FROM table_name_90 WHERE runner_up = "jimmy connors" AND year < 1978 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_12 (bronze VARCHAR, silver INTEGER)
### Question:
What is the total when bronze has a silver larger than 2?
### Answer:
SELECT COUNT(bronze) FROM table_name_12 WHERE silver > 2 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE manufacturers (headquarter VARCHAR)
### Question:
Find the number of manufactures that are based in Tokyo or Beijing.
### Answer:
SELECT COUNT(*) FROM manufacturers WHERE headquarter = 'Tokyo' OR headquarter = 'Beijing' |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_23 (opponent VARCHAR, score VARCHAR)
### Question:
Which opponent has a Score of 2–5?
### Answer:
SELECT opponent FROM table_name_23 WHERE score = "2–5" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_23274514_6 (date VARCHAR, record VARCHAR)
### Question:
What day was the record 14-27?
### Answer:
SELECT date FROM table_23274514_6 WHERE record = "14-27" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_64 (district VARCHAR, reserved_for___sc___st__none_ VARCHAR, name VARCHAR)
### Question:
What is the district of Paraswada with none reserved?
### Answer:
SELECT district FROM table_name_64 WHERE reserved_for___sc___st__none_ = "none" AND name = "paraswada" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_50 (hdtv VARCHAR, television_service VARCHAR)
### Question:
Does daystar television network provide HDTV?
### Answer:
SELECT hdtv FROM table_name_50 WHERE television_service = "daystar television network" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_9 (party VARCHAR, first_elected VARCHAR)
### Question:
when first elected was 1898 what was the party?
### Answer:
SELECT party FROM table_name_9 WHERE first_elected = "1898" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_38 (date_of_registration VARCHAR, province VARCHAR, party VARCHAR)
### Question:
When was the Partido radical party in Madrid registered?
### Answer:
SELECT date_of_registration FROM table_name_38 WHERE province = "madrid" AND party = "partido radical" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_12 (date VARCHAR, opponenent VARCHAR, match_type VARCHAR)
### Question:
When was the opponent Poland and the match type EC -qualifier?
### Answer:
SELECT date FROM table_name_12 WHERE opponenent = "poland" AND match_type = "ec -qualifier" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_28787871_3 (production_code INTEGER, us_viewers__millions_ VARCHAR)
### Question:
What is the highest production code of the episodes having a US viewership of exactly 2.3?
### Answer:
SELECT MAX(production_code) FROM table_28787871_3 WHERE us_viewers__millions_ = "2.3" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_90 (tries_for INTEGER, points_for VARCHAR, tries_against VARCHAR)
### Question:
What is the average tries for less than 117 points and less than 48 tries against?
### Answer:
SELECT AVG(tries_for) FROM table_name_90 WHERE points_for < 117 AND tries_against < 48 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_28540539_2 (version VARCHAR, release VARCHAR)
### Question:
What's the version of the 1.0.12 release?
### Answer:
SELECT version FROM table_28540539_2 WHERE release = "1.0.12" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_63 (record VARCHAR, home VARCHAR)
### Question:
What was the record when chicago was the home team?
### Answer:
SELECT record FROM table_name_63 WHERE home = "chicago" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE department (school_code VARCHAR, dept_code VARCHAR); CREATE TABLE professor (dept_code VARCHAR)
### Question:
Which school has the smallest amount of professors?
### Answer:
SELECT T1.school_code FROM department AS T1 JOIN professor AS T2 ON T1.dept_code = T2.dept_code GROUP BY T1.school_code ORDER BY COUNT(*) LIMIT 1 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_15 (country VARCHAR, first_store VARCHAR)
### Question:
Which country had the first store in the year 2007?
### Answer:
SELECT country FROM table_name_15 WHERE first_store = "2007" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_69 (home_team VARCHAR, away_team VARCHAR)
### Question:
What is the Home team score for the Away team of North Melbourne?
### Answer:
SELECT home_team AS score FROM table_name_69 WHERE away_team = "north melbourne" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_90 (top_5 INTEGER, wins INTEGER)
### Question:
What is the fewest number of top-5s for events with more than 1 win?
### Answer:
SELECT MIN(top_5) FROM table_name_90 WHERE wins > 1 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_40 (wins INTEGER, top_10 INTEGER)
### Question:
What is the lowest Wins with a Top-10 that is larger than 9?
### Answer:
SELECT MIN(wins) FROM table_name_40 WHERE top_10 > 9 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_8 (team VARCHAR, driver_s_ VARCHAR, rounds VARCHAR)
### Question:
What team was Tom Sneva on in rounds 1-9?
### Answer:
SELECT team FROM table_name_8 WHERE driver_s_ = "tom sneva" AND rounds = "1-9" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_96 (decision VARCHAR, visitor VARCHAR, date VARCHAR)
### Question:
What was the decision of the game with Washington as the visitor team on October 13?
### Answer:
SELECT decision FROM table_name_96 WHERE visitor = "washington" AND date = "october 13" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_15607589_2 (record VARCHAR, opponent VARCHAR)
### Question:
Name the record for new york giants
### Answer:
SELECT record FROM table_15607589_2 WHERE opponent = "New York Giants" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE professor (emp_num VARCHAR, prof_office VARCHAR); CREATE TABLE employee (emp_lname VARCHAR, emp_hiredate VARCHAR, emp_num VARCHAR)
### Question:
Find the last name and hire date of the professor who is in office DRE 102.
### Answer:
SELECT T1.emp_lname, T1.emp_hiredate FROM employee AS T1 JOIN professor AS T2 ON T1.emp_num = T2.emp_num WHERE T2.prof_office = 'DRE 102' |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_2985714_2 (_number INTEGER)
### Question:
What is the maximum overall number?
### Answer:
SELECT MAX(_number) FROM table_2985714_2 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_32 (status VARCHAR, artist VARCHAR)
### Question:
What Status does Freddie Jackson have?
### Answer:
SELECT status FROM table_name_32 WHERE artist = "freddie jackson" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_17 (crowd INTEGER, venue VARCHAR)
### Question:
How many people attended Junction Oval?
### Answer:
SELECT SUM(crowd) FROM table_name_17 WHERE venue = "junction oval" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_70 (nationality VARCHAR, school_club_team VARCHAR)
### Question:
What country is team ucla come from?
### Answer:
SELECT nationality FROM table_name_70 WHERE school_club_team = "ucla" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE player (POSITION VARCHAR, points INTEGER)
### Question:
find the number of players whose points are lower than 30 in each position.
### Answer:
SELECT COUNT(*), POSITION FROM player WHERE points < 30 GROUP BY POSITION |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_83 (result VARCHAR, first_elected VARCHAR, incumbent VARCHAR)
### Question:
What was the result of W. Jasper Talbert who was first elected in 1892?
### Answer:
SELECT result FROM table_name_83 WHERE first_elected = "1892" AND incumbent = "w. jasper talbert" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_50 (current_streak VARCHAR, last_10_meetings VARCHAR)
### Question:
What's the current streak with a last 10 meetings of lsu, 2-1?
### Answer:
SELECT current_streak FROM table_name_50 WHERE last_10_meetings = "lsu, 2-1" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_34 (points INTEGER, position VARCHAR, lost VARCHAR)
### Question:
Which average Points have a Position of 7, and a Lost smaller than 4?
### Answer:
SELECT AVG(points) FROM table_name_34 WHERE position = 7 AND lost < 4 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_87 (engine VARCHAR, model VARCHAR, torque VARCHAR)
### Question:
What is the engine for model 2.0 bitdi (cr) dpf, with a Torque of n·m (lb·ft) @ 1500–2000 rpm?
### Answer:
SELECT engine FROM table_name_87 WHERE model = "2.0 bitdi (cr) dpf" AND torque = "n·m (lb·ft) @ 1500–2000 rpm" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_7 (score VARCHAR, points VARCHAR, game VARCHAR)
### Question:
What is the score when the points are larger than 74 and the game is 57?
### Answer:
SELECT score FROM table_name_7 WHERE points > 74 AND game = 57 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_41 (crowd INTEGER, home_team VARCHAR)
### Question:
What is the average crowd size when fitzroy plays at home?
### Answer:
SELECT AVG(crowd) FROM table_name_41 WHERE home_team = "fitzroy" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.