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 people (sex VARCHAR, weight INTEGER)
### Question:
how many people are there whose weight is higher than 85 for each gender?
### Answer:
SELECT COUNT(*), sex FROM people WHERE weight > 85 GROUP BY sex |
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_22460085_1 (character VARCHAR, original_west_end_performer VARCHAR)
### Question:
What character did Richard Fleeshman portray?
### Answer:
SELECT character FROM table_22460085_1 WHERE original_west_end_performer = "Richard Fleeshman" |
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 (to_par VARCHAR, year_s__won VARCHAR)
### Question:
Which To par has a Year(s) won of 1983?
### Answer:
SELECT to_par FROM table_name_15 WHERE year_s__won = "1983" |
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 (scored VARCHAR, position VARCHAR, points VARCHAR)
### Question:
What is the total number scored for the team that had 19 points and a position larger than 4?
### Answer:
SELECT COUNT(scored) FROM table_name_48 WHERE position > 4 AND points = 19 |
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_88 (player VARCHAR, goals_against_average VARCHAR, games_played VARCHAR)
### Question:
Who played 44 games who averaged over 2.07 goals against?
### Answer:
SELECT player FROM table_name_88 WHERE goals_against_average > 2.07 AND games_played = 44 |
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_23224961_2 (season VARCHAR, mittelfranken_süd VARCHAR)
### Question:
When asv nürnberg-süd is the mittelfranken süd what is the season?
### Answer:
SELECT season FROM table_23224961_2 WHERE mittelfranken_süd = "ASV Nürnberg-Süd" |
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_13 (purpose VARCHAR, on_air_id VARCHAR)
### Question:
Name the purpose for on-air ID of 2xx
### Answer:
SELECT purpose FROM table_name_13 WHERE on_air_id = "2xx" |
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_56 (score VARCHAR, game INTEGER)
### Question:
What was the score at the game earlier than 66?
### Answer:
SELECT score FROM table_name_56 WHERE game < 66 |
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_33 (winner VARCHAR, result VARCHAR, loser VARCHAR, location VARCHAR)
### Question:
Who is the Winner, when the Loser is the Baltimore Colts, when the Location is Schaefer Stadium, and when the Result is 42-3?
### Answer:
SELECT winner FROM table_name_33 WHERE loser = "baltimore colts" AND location = "schaefer stadium" AND result = "42-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_14655985_1 (college VARCHAR, player VARCHAR)
### Question:
how many college with player being rich voltzke
### Answer:
SELECT COUNT(college) FROM table_14655985_1 WHERE player = "Rich Voltzke" |
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_68 (released VARCHAR, series_sorted VARCHAR)
### Question:
what is the released when the series is sorted 6y/ai?
### Answer:
SELECT released FROM table_name_68 WHERE series_sorted = "6y/ai" |
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 (population_density INTEGER, population__2011_ VARCHAR, change___percentage_ VARCHAR, county VARCHAR)
### Question:
What is the Population density that has a Change (%) higher than 10.4, and a Population (2011) less than 8574, in the County of Queens?
### Answer:
SELECT AVG(population_density) FROM table_name_63 WHERE change___percentage_ > 10.4 AND county = "queens" AND population__2011_ < 8574 |
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 images (image_name VARCHAR, image_url VARCHAR)
### Question:
List all the image name and URLs in the order of their names.
### Answer:
SELECT image_name, image_url FROM images ORDER BY image_name |
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_29 (actor_required VARCHAR, actor_in_original_production VARCHAR)
### Question:
Who is the required actor when Robert Austin was the actor in the original production?
### Answer:
SELECT actor_required FROM table_name_29 WHERE actor_in_original_production = "robert austin" |
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_55 (opponent VARCHAR, week INTEGER)
### Question:
Which opponent was on week 2?
### Answer:
SELECT opponent FROM table_name_55 WHERE week < 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_27932399_1 (artist VARCHAR, release_title VARCHAR)
### Question:
Which artist had a release title of HH?
### Answer:
SELECT artist FROM table_27932399_1 WHERE release_title = "HH" |
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 (winning_team VARCHAR, year VARCHAR)
### Question:
What was the winning team in 2013?
### Answer:
SELECT winning_team FROM table_name_74 WHERE year = 2013 |
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 (rank VARCHAR, player VARCHAR)
### Question:
What ranking is james franklin?
### Answer:
SELECT rank FROM table_name_69 WHERE player = "james franklin" |
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 Behavior_Incident (date_incident_start VARCHAR, date_incident_end VARCHAR, incident_type_code VARCHAR)
### Question:
What are the start and end dates for incidents with incident type code "NOISE"?
### Answer:
SELECT date_incident_start, date_incident_end FROM Behavior_Incident WHERE incident_type_code = "NOISE" |
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_53 (sensor VARCHAR, sensor_resolution VARCHAR, camera VARCHAR)
### Question:
What was the sensor with a resolution of 355x288 for a Naturalpoint Trackir 3?
### Answer:
SELECT sensor FROM table_name_53 WHERE sensor_resolution = "355x288" AND camera = "naturalpoint trackir 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_24 (tv_time VARCHAR, date VARCHAR)
### Question:
What was the tv time on december 6, 1998?
### Answer:
SELECT tv_time FROM table_name_24 WHERE date = "december 6, 1998" |
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_62 (social_sec_leeds VARCHAR, media_officer VARCHAR, treasurer VARCHAR)
### Question:
What kind of Social Sec Leeds has a Media Officer of jason james and a Treasurer of james davidson?
### Answer:
SELECT social_sec_leeds FROM table_name_62 WHERE media_officer = "jason james" AND treasurer = "james davidson" |
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 (weight_of_shot VARCHAR, designation__bore_ VARCHAR)
### Question:
what is the weight of a shot that is xx-inch?
### Answer:
SELECT weight_of_shot FROM table_name_51 WHERE designation__bore_ = "xx-inch" |
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_19744915_16 (result VARCHAR, couple VARCHAR)
### Question:
What is Zoe and Matt's result?
### Answer:
SELECT result FROM table_19744915_16 WHERE couple = "Zoe and Matt" |
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_61 (away VARCHAR, result VARCHAR)
### Question:
Who was the Away team on the result of 1-5 aet?
### Answer:
SELECT away FROM table_name_61 WHERE result = "1-5 aet" |
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_22669375_1 (race_name VARCHAR, rnd VARCHAR)
### Question:
Name the race name for rnd being 11
### Answer:
SELECT race_name FROM table_22669375_1 WHERE rnd = 11 |
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_93 (wins VARCHAR, glenelg_fl VARCHAR, byes VARCHAR)
### Question:
How many wins did Glenelg FL of bahgallah have when there were more than 3 byes?
### Answer:
SELECT COUNT(wins) FROM table_name_93 WHERE glenelg_fl = "bahgallah" AND byes > 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_1805191_36 (candidates VARCHAR, incumbent VARCHAR)
### Question:
Who were all the candidates in elections in which Steve Chabot was a candidate?
### Answer:
SELECT candidates FROM table_1805191_36 WHERE incumbent = "Steve Chabot" |
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 (character VARCHAR, actor VARCHAR)
### Question:
Who's the character when Margot Boyd was acting?
### Answer:
SELECT character FROM table_name_34 WHERE actor = "margot boyd" |
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_21501564_1 (week__number VARCHAR, original_artist VARCHAR)
### Question:
What week #(s featured sara bareilles as the original artist?
### Answer:
SELECT week__number FROM table_21501564_1 WHERE original_artist = "Sara Bareilles" |
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_99 (visitor VARCHAR, leading_scorer VARCHAR)
### Question:
What is the visitor team of the game with Rudy Gay (23) as the leading scorer?
### Answer:
SELECT visitor FROM table_name_99 WHERE leading_scorer = "rudy gay (23)" |
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_22756549_1 (party VARCHAR, winner VARCHAR)
### Question:
What party is the winner K. Anbazhagan from?
### Answer:
SELECT party AS a FROM table_22756549_1 WHERE winner = "K. Anbazhagan" |
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_14971788_1 (game_site VARCHAR, opponent VARCHAR)
### Question:
Where was the game against Atlanta Falcons held?
### Answer:
SELECT game_site FROM table_14971788_1 WHERE opponent = "Atlanta Falcons" |
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_45 (height__m_ INTEGER, peak VARCHAR, class VARCHAR, prom__m_ VARCHAR)
### Question:
What is the average height for hewitt class, with prom less than 86, and a Peak of gragareth?
### Answer:
SELECT AVG(height__m_) FROM table_name_45 WHERE class = "hewitt" AND prom__m_ < 86 AND peak = "gragareth" |
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_99 (black__both_hispanic_and_non_hispanic_ INTEGER, hispanic__of_any_race_ VARCHAR, white__both_hispanic_and_non_hispanic_ VARCHAR, multiracial__both_hispanic_and_non_hispanic_ VARCHAR)
### Question:
What is the average black value (Hispanic/Non-Hispanic) having a white (Hispanic/Non-Hispanic) under 61.9, Multiracial (Hispanic/Non-Hispanic) under 12.5 and Hispanic under 99.4?
### Answer:
SELECT AVG(black__both_hispanic_and_non_hispanic_) FROM table_name_99 WHERE white__both_hispanic_and_non_hispanic_ < 61.9 AND multiracial__both_hispanic_and_non_hispanic_ < 12.5 AND hispanic__of_any_race_ < 99.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_42 (position VARCHAR, pick VARCHAR)
### Question:
What is the position of the pick 1 player?
### Answer:
SELECT position FROM table_name_42 WHERE pick = "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_95 (region VARCHAR, mountain_peak VARCHAR)
### Question:
Name the Region with a Mountain Peak of dillingham high point?
### Answer:
SELECT region FROM table_name_95 WHERE mountain_peak = "dillingham high point" |
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 (floors INTEGER, street_address VARCHAR)
### Question:
WHAT IS THE FLOOR NUMBERS WITH 01.0 10 light street?
### Answer:
SELECT SUM(floors) FROM table_name_57 WHERE street_address = "01.0 10 light street" |
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_13557843_7 (location_attendance VARCHAR, team VARCHAR)
### Question:
how many location attendance with team being charlotte
### Answer:
SELECT COUNT(location_attendance) FROM table_13557843_7 WHERE team = "Charlotte" |
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_12792876_3 (tries_against VARCHAR, drawn VARCHAR)
### Question:
What was the tries against when the drawn was 2?
### Answer:
SELECT tries_against FROM table_12792876_3 WHERE drawn = "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_39 (winning_applicant VARCHAR, block VARCHAR, area VARCHAR)
### Question:
Who is the Winning Applicant of Block 10B in Derbyshire Area?
### Answer:
SELECT winning_applicant FROM table_name_39 WHERE block = "10b" AND area = "derbyshire" |
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 (pick INTEGER, player VARCHAR, round VARCHAR)
### Question:
What was the average pick with Ed O'Bannon and a round smaller than 1?
### Answer:
SELECT AVG(pick) FROM table_name_74 WHERE player = "ed o'bannon" AND round < 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_22 (oppose VARCHAR, poll_source VARCHAR, unsure VARCHAR)
### Question:
What percentage of people were opposed to the candidate based on the Time Poll poll that showed 6% of people were unsure?
### Answer:
SELECT oppose FROM table_name_22 WHERE poll_source = "time poll" AND unsure = "6%" |
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 documents (document_type_code VARCHAR)
### Question:
Find the types of documents with more than 4 documents.
### Answer:
SELECT document_type_code FROM documents GROUP BY document_type_code HAVING COUNT(*) > 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_65 (nation VARCHAR, silver VARCHAR, gold VARCHAR)
### Question:
Which country had more than 2 silvers and less than 4 golds?
### Answer:
SELECT nation FROM table_name_65 WHERE silver > 2 AND gold < 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_17 (occupation VARCHAR, hometown VARCHAR)
### Question:
What is the occupation of the person with a hometown of Hampshire?
### Answer:
SELECT occupation FROM table_name_17 WHERE hometown = "hampshire" |
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 (earnings___ INTEGER, events VARCHAR, wins VARCHAR)
### Question:
What is the high earnings for players with 34 events and over 2 wins?
### Answer:
SELECT MAX(earnings___) AS $__ FROM table_name_90 WHERE events = 34 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_26222468_1 (wins INTEGER)
### Question:
What is the maximum number of wins?
### Answer:
SELECT MAX(wins) FROM table_26222468_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_92 (score VARCHAR, player VARCHAR)
### Question:
What is the Score when the Player is toru taniguchi?
### Answer:
SELECT score FROM table_name_92 WHERE player = "toru taniguchi" |
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_225100_4 (vacator VARCHAR, district VARCHAR)
### Question:
Who is the vacator when south carolina 4th is the district?
### Answer:
SELECT vacator FROM table_225100_4 WHERE district = "South Carolina 4th" |
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 (date VARCHAR, home_team VARCHAR)
### Question:
On what date did Fitzroy play as the home team?
### Answer:
SELECT date FROM table_name_74 WHERE home_team = "fitzroy" |
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_20745444_1 (game INTEGER, opponent VARCHAR)
### Question:
How many games were against Furman?
### Answer:
SELECT MAX(game) FROM table_20745444_1 WHERE opponent = "Furman" |
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 (prominence VARCHAR, mountain_peak VARCHAR)
### Question:
Name the Prominence of the Mountain Peak of matchless mountain pb?
### Answer:
SELECT prominence FROM table_name_81 WHERE mountain_peak = "matchless mountain pb" |
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_98 (date VARCHAR, class VARCHAR, circuit VARCHAR)
### Question:
Which date was a GTS class on the Mosport International Raceway?
### Answer:
SELECT date FROM table_name_98 WHERE class = "gts" AND circuit = "mosport international raceway" |
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_101336_1 (crystal_structure VARCHAR, formula VARCHAR)
### Question:
What is the crystal structure for the formula yba 2 cu 3 o 7?
### Answer:
SELECT crystal_structure FROM table_101336_1 WHERE formula = "YBa 2 Cu 3 O 7" |
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 Person (job VARCHAR, age INTEGER)
### Question:
What is average age for different job title?
### Answer:
SELECT AVG(age), job FROM Person GROUP BY job |
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_17480471_3 (gatchaman VARCHAR, eagle_riders VARCHAR)
### Question:
Which gatchaman has eagle riders as lukan?
### Answer:
SELECT gatchaman FROM table_17480471_3 WHERE eagle_riders = "Lukan" |
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_30108930_6 (position VARCHAR, player VARCHAR)
### Question:
What is Tyrell Francisco's player position?
### Answer:
SELECT position FROM table_30108930_6 WHERE player = "Tyrell Francisco" |
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_67 (pick INTEGER, round VARCHAR)
### Question:
What is the highest numbered pick from round 7?
### Answer:
SELECT MAX(pick) FROM table_name_67 WHERE round = 7 |
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 (drawn INTEGER, points VARCHAR, against VARCHAR)
### Question:
What is the smallest drawn when the points are less than 7 and the against greater than 31?
### Answer:
SELECT MIN(drawn) FROM table_name_79 WHERE points < 7 AND against > 31 |
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_25355392_2 (november_3 VARCHAR, march_27_29 VARCHAR)
### Question:
how many times is march 27-29 is 129?
### Answer:
SELECT COUNT(november_3) FROM table_25355392_2 WHERE march_27_29 = "129" |
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 Sportsinfo (sportname VARCHAR)
### Question:
How many sports do we have?
### Answer:
SELECT COUNT(DISTINCT sportname) FROM Sportsinfo |
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_1346118_4 (first_elected INTEGER, incumbent VARCHAR)
### Question:
When was incumbent John N. Tillman first elected?
### Answer:
SELECT MIN(first_elected) FROM table_1346118_4 WHERE incumbent = "John N. Tillman" |
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 (voted_yes VARCHAR, jurisdiction VARCHAR, voted_no VARCHAR)
### Question:
What is the total number of yes votes in Newfoundland, which had less than 77,881 vote no?
### Answer:
SELECT COUNT(voted_yes) FROM table_name_49 WHERE jurisdiction = "newfoundland" AND voted_no < 77 OFFSET 881 |
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 (position INTEGER, goals_against VARCHAR, lost VARCHAR)
### Question:
What position was the team who had less then 63 goals against and less than 6 losses?
### Answer:
SELECT AVG(position) FROM table_name_20 WHERE goals_against < 63 AND lost < 6 |
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_43 (time_retired VARCHAR, rider VARCHAR)
### Question:
Which Time/Retired has a Rider of daijiro kato?
### Answer:
SELECT time_retired FROM table_name_43 WHERE rider = "daijiro kato" |
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_93 (winning_score VARCHAR, margin_of_victory VARCHAR, tournament VARCHAR)
### Question:
What is the winning score with a margin of victory of 4 strokes for the NEC Invitational tournament?
### Answer:
SELECT winning_score FROM table_name_93 WHERE margin_of_victory = "4 strokes" AND tournament = "nec invitational" |
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 (frequency VARCHAR, voltage VARCHAR, part_number_s_ VARCHAR)
### Question:
Which frequency has voltage of 1.6v and part number kp80524kx300256kc80524kx300256pmg30002002aa?
### Answer:
SELECT frequency FROM table_name_64 WHERE voltage = "1.6v" AND part_number_s_ = "kp80524kx300256kc80524kx300256pmg30002002aa" |
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_30007505_1 (semifinalists VARCHAR, rank VARCHAR)
### Question:
Name the number of semifinalists for 19 rank
### Answer:
SELECT COUNT(semifinalists) FROM table_30007505_1 WHERE rank = 19 |
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 STUDENT (LName VARCHAR, PRESIDENT_Vote VARCHAR, Advisor VARCHAR); CREATE TABLE STUDENT (LName VARCHAR, StuID VARCHAR); CREATE TABLE VOTING_RECORD (Id VARCHAR)
### Question:
Find the distinct last names of all the students who have president votes and whose advisor is not 2192.
### Answer:
SELECT DISTINCT T1.LName FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = PRESIDENT_Vote EXCEPT SELECT DISTINCT LName FROM STUDENT WHERE Advisor = "2192" |
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 (date VARCHAR, home_team VARCHAR)
### Question:
What day is st kilda the home side?
### Answer:
SELECT date FROM table_name_87 WHERE home_team = "st kilda" |
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_88 (attendance INTEGER, score VARCHAR)
### Question:
How many Attendances have a Score of 4 – 5? Question 4
### Answer:
SELECT MAX(attendance) FROM table_name_88 WHERE score = "4 – 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_name_12 (route INTEGER, elevation VARCHAR)
### Question:
Elevation of 12,183 feet 3713 m is what average route?
### Answer:
SELECT AVG(route) FROM table_name_12 WHERE elevation = "12,183 feet 3713 m" |
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_11734041_9 (no_s_ VARCHAR, school_club_team_country VARCHAR)
### Question:
What is the number of the player who went to Southern University?
### Answer:
SELECT no_s_ FROM table_11734041_9 WHERE school_club_team_country = "Southern University" |
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 (rank VARCHAR, player VARCHAR, events VARCHAR)
### Question:
Tiger Woods has played less than 21 events and is what rank?
### Answer:
SELECT COUNT(rank) FROM table_name_90 WHERE player = "tiger woods" AND events < 21 |
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_3 (opponent VARCHAR, result VARCHAR)
### Question:
Who was the opponent against which the result was w20-0?
### Answer:
SELECT opponent FROM table_name_3 WHERE result = "w20-0" |
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_55 (venue VARCHAR, tournament VARCHAR)
### Question:
What's the venue for the asian games tournament?
### Answer:
SELECT venue FROM table_name_55 WHERE tournament = "asian games" |
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_67 (finish VARCHAR, start VARCHAR)
### Question:
What is the finish value for a start of 19?
### Answer:
SELECT finish FROM table_name_67 WHERE start = "19" |
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 (set_2 VARCHAR, total VARCHAR, set_3 VARCHAR)
### Question:
What is the Set 2 with a Total of 45–12, and a Set 3 with 15–2?
### Answer:
SELECT set_2 FROM table_name_6 WHERE total = "45–12" AND set_3 = "15–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_83 (avg INTEGER, yards VARCHAR)
### Question:
Which largest average had 1229 yards?
### Answer:
SELECT MAX(avg) FROM table_name_83 WHERE yards = 1229 |
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 (region VARCHAR, date VARCHAR)
### Question:
What region is on 11 August 2008?
### Answer:
SELECT region FROM table_name_4 WHERE date = "11 august 2008" |
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_1341865_40 (district VARCHAR, incumbent VARCHAR)
### Question:
What district is incumbent albert w. johnson from?
### Answer:
SELECT district FROM table_1341865_40 WHERE incumbent = "Albert W. Johnson" |
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_10023387_1 (doubles_w_l VARCHAR, player VARCHAR)
### Question:
what's the doubles w-l for player seol jae-min (none)
### Answer:
SELECT doubles_w_l FROM table_10023387_1 WHERE player = "Seol Jae-Min (none)" |
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_2562572_27 (settlement VARCHAR, cyrillic_name_other_names VARCHAR)
### Question:
How many settlements have as their cyrillic name and other names панонија?
### Answer:
SELECT settlement FROM table_2562572_27 WHERE cyrillic_name_other_names = "Панонија" |
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_58 (constructor VARCHAR, grid VARCHAR, time_retired VARCHAR)
### Question:
Who constructed the car that retired due to brakes with a grid larger than 17?
### Answer:
SELECT constructor FROM table_name_58 WHERE grid > 17 AND time_retired = "brakes" |
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 (after_debt VARCHAR, total_receipts VARCHAR)
### Question:
What is the after debt has receipts of $379,794?
### Answer:
SELECT after_debt FROM table_name_90 WHERE total_receipts = "$379,794" |
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 (average VARCHAR, matches VARCHAR, wickets VARCHAR)
### Question:
what is the average when matches is less than 5 and wickets is more than 9?
### Answer:
SELECT average FROM table_name_26 WHERE matches < 5 AND wickets > 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_91 (round VARCHAR, opponent VARCHAR)
### Question:
In the fight against Brandon Bledsoe, how many rounds did the fight last?
### Answer:
SELECT round FROM table_name_91 WHERE opponent = "brandon bledsoe" |
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_29033869_3 (venue VARCHAR, opponent VARCHAR, position_on_ladder VARCHAR)
### Question:
Which venue did collingsworth play essendon in when they had the 3rd position on the ladder?
### Answer:
SELECT venue FROM table_29033869_3 WHERE opponent = "Essendon" AND position_on_ladder = "3rd" |
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_15621965_17 (no INTEGER, position VARCHAR, school_club_team VARCHAR)
### Question:
What is the latest number of the guard position from the Wake Forest school team?
### Answer:
SELECT MAX(no) FROM table_15621965_17 WHERE position = "Guard" AND school_club_team = "Wake Forest" |
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_31 (catalogue VARCHAR, region VARCHAR)
### Question:
Which catalogue is from Japan?
### Answer:
SELECT catalogue FROM table_name_31 WHERE region = "japan" |
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 (natural_change VARCHAR, crude_death_rate__per_1000_ VARCHAR, live_births VARCHAR)
### Question:
What is natural change with a crude death rate of 8.7 and less than 472 live births?
### Answer:
SELECT natural_change FROM table_name_74 WHERE crude_death_rate__per_1000_ = 8.7 AND live_births < 472 |
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 CAR_NAMES (Make VARCHAR, MakeId VARCHAR); CREATE TABLE CARS_DATA (horsepower VARCHAR, Id VARCHAR, cylinders VARCHAR)
### Question:
What is the maximum horsepower and the make of the car models with 3 cylinders?
### Answer:
SELECT T2.horsepower, T1.Make FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id WHERE T2.cylinders = 3 ORDER BY T2.horsepower DESC 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_70 (tournament VARCHAR, score VARCHAR)
### Question:
Which tournament had a score of 6–4, 4–6, 7–5?
### Answer:
SELECT tournament FROM table_name_70 WHERE score = "6–4, 4–6, 7–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 country (continent VARCHAR)
### Question:
how many countries are in Asia?
### Answer:
SELECT COUNT(*) FROM country WHERE continent = "Asia" |
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_75 (runners_up VARCHAR, champions VARCHAR)
### Question:
What runner(s)-up has 1 (2013) as the champions?
### Answer:
SELECT runners_up FROM table_name_75 WHERE champions = "1 (2013)" |
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 (record VARCHAR, date VARCHAR)
### Question:
What is the record of the game on May 6?
### Answer:
SELECT record FROM table_name_4 WHERE date = "may 6" |
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 (country VARCHAR, edition VARCHAR)
### Question:
What was the nationality of the winner of the 42nd Edition?
### Answer:
SELECT country FROM table_name_90 WHERE edition = "42nd" |
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_53 (country VARCHAR, operator VARCHAR, project_name VARCHAR)
### Question:
What country did the project, Bonga SW; Aparo with a shell operator take place?
### Answer:
SELECT country FROM table_name_53 WHERE operator = "shell" AND project_name = "bonga sw; aparo" |
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 (network VARCHAR, year VARCHAR, title VARCHAR)
### Question:
What is the network that aired Star King prior to 2011?
### Answer:
SELECT network FROM table_name_70 WHERE year < 2011 AND title = "star king" |
Subsets and Splits