question stringlengths 16 239 | table_name stringlengths 3 43 | columns listlengths 5 20 | column_types listlengths 5 20 | gold_sql stringlengths 35 209 | db_id stringclasses 1
value | source stringclasses 1
value |
|---|---|---|---|---|---|---|
What district is ruben hinojosa from? | election_results_1998_4 | [
"district",
"incumbent",
"party",
"first_elected",
"results",
"candidates"
] | [
"text",
"text",
"text",
"real",
"text",
"text"
] | SELECT "district" FROM election_results_1998_4 WHERE "incumbent" = 'Ruben Hinojosa' | dev | wikisql |
What district is nick lampson from? | election_results_1998_4 | [
"district",
"incumbent",
"party",
"first_elected",
"results",
"candidates"
] | [
"text",
"text",
"text",
"real",
"text",
"text"
] | SELECT "district" FROM election_results_1998_4 WHERE "incumbent" = 'Nick Lampson' | dev | wikisql |
What year was incumbent jim mcdermott first elected? | election_results_1994 | [
"district",
"incumbent",
"party",
"first_elected",
"status",
"opponent"
] | [
"text",
"text",
"text",
"real",
"text",
"text"
] | SELECT MIN("first_elected") FROM election_results_1994 WHERE "incumbent" = 'Jim McDermott' | dev | wikisql |
What was the result of the election of doc hastings (r) 53.3% jay inslee (d) 46.7% | election_results_1994 | [
"district",
"incumbent",
"party",
"first_elected",
"status",
"opponent"
] | [
"text",
"text",
"text",
"real",
"text",
"text"
] | SELECT "status" FROM election_results_1994 WHERE "opponent" = 'Doc Hastings (R) 53.3% Jay Inslee (D) 46.7%' | dev | wikisql |
What districts does incumbent Curt Weldon hold? | election_results_1990 | [
"district",
"incumbent",
"party",
"elected",
"status",
"opponent"
] | [
"text",
"text",
"text",
"real",
"text",
"text"
] | SELECT "district" FROM election_results_1990 WHERE "incumbent" = 'Curt Weldon' | dev | wikisql |
How many champions were there when the first driver was hiroki yoshimoto ( 2005 )? | gp2_drivers | [
"country",
"total_drivers",
"champions",
"championships",
"current_september_22_2013",
"first_driver_s",
"last_current_driver_s_september_22_2013"
] | [
"text",
"real",
"text",
"text",
"real",
"text",
"text"
] | SELECT "champions" FROM gp2_drivers WHERE "first_driver_s" = 'Hiroki Yoshimoto ( 2005 )' | dev | wikisql |
How many entries are there for total drivers when the Last driver for september 22, 2013 was gianmarco raimondo? | gp2_drivers | [
"country",
"total_drivers",
"champions",
"championships",
"current_september_22_2013",
"first_driver_s",
"last_current_driver_s_september_22_2013"
] | [
"text",
"real",
"text",
"text",
"real",
"text",
"text"
] | SELECT "total_drivers" FROM gp2_drivers WHERE "last_current_driver_s_september_22_2013" = 'Gianmarco Raimondo' | dev | wikisql |
How many champions were there when the last driver for September 22, 2013 was vladimir arabadzhiev ( 2010 )? | gp2_drivers | [
"country",
"total_drivers",
"champions",
"championships",
"current_september_22_2013",
"first_driver_s",
"last_current_driver_s_september_22_2013"
] | [
"text",
"real",
"text",
"text",
"real",
"text",
"text"
] | SELECT "champions" FROM gp2_drivers WHERE "last_current_driver_s_september_22_2013" = 'Vladimir Arabadzhiev ( 2010 )' | dev | wikisql |
How many entries are there for first driver for Canada? | gp2_drivers | [
"country",
"total_drivers",
"champions",
"championships",
"current_september_22_2013",
"first_driver_s",
"last_current_driver_s_september_22_2013"
] | [
"text",
"real",
"text",
"text",
"real",
"text",
"text"
] | SELECT COUNT("first_driver_s") FROM gp2_drivers WHERE "country" = 'Canada' | dev | wikisql |
How many champions were there when the last driver was Gianmarco Raimondo? | gp2_drivers | [
"country",
"total_drivers",
"champions",
"championships",
"current_september_22_2013",
"first_driver_s",
"last_current_driver_s_september_22_2013"
] | [
"text",
"real",
"text",
"text",
"real",
"text",
"text"
] | SELECT "champions" FROM gp2_drivers WHERE "last_current_driver_s_september_22_2013" = 'Gianmarco Raimondo' | dev | wikisql |
Name the candidates for georgia 8 | election_results_1982 | [
"district",
"incumbent",
"party",
"first_elected",
"result",
"candidates"
] | [
"text",
"text",
"text",
"real",
"text",
"text"
] | SELECT "candidates" FROM election_results_1982 WHERE "district" = 'Georgia 8' | dev | wikisql |
Name the party of georgia 4 | election_results_1982 | [
"district",
"incumbent",
"party",
"first_elected",
"result",
"candidates"
] | [
"text",
"text",
"text",
"real",
"text",
"text"
] | SELECT "party" FROM election_results_1982 WHERE "district" = 'Georgia 4' | dev | wikisql |
Name the party for jack thomas brinkley | election_results_1982 | [
"district",
"incumbent",
"party",
"first_elected",
"result",
"candidates"
] | [
"text",
"text",
"text",
"real",
"text",
"text"
] | SELECT "party" FROM election_results_1982 WHERE "incumbent" = 'Jack Thomas Brinkley' | dev | wikisql |
Name the districk for larry mcdonald | election_results_1982 | [
"district",
"incumbent",
"party",
"first_elected",
"result",
"candidates"
] | [
"text",
"text",
"text",
"real",
"text",
"text"
] | SELECT "district" FROM election_results_1982 WHERE "incumbent" = 'Larry McDonald' | dev | wikisql |
what's the result with district being florida 7 | florida_2_elections | [
"district",
"incumbent",
"party",
"first_elected",
"result",
"candidates"
] | [
"text",
"text",
"text",
"text",
"text",
"text"
] | SELECT "result" FROM florida_2_elections WHERE "district" = 'Florida 7' | dev | wikisql |
what's the district with result being new seat democratic gain | florida_2_elections | [
"district",
"incumbent",
"party",
"first_elected",
"result",
"candidates"
] | [
"text",
"text",
"text",
"text",
"text",
"text"
] | SELECT "district" FROM florida_2_elections WHERE "result" = 'New seat Democratic gain' | dev | wikisql |
how many candidates with result being new seat democratic gain | florida_2_elections | [
"district",
"incumbent",
"party",
"first_elected",
"result",
"candidates"
] | [
"text",
"text",
"text",
"text",
"text",
"text"
] | SELECT COUNT("candidates") FROM florida_2_elections WHERE "result" = 'New seat Democratic gain' | dev | wikisql |
how many result with district being florida 14 | florida_2_elections | [
"district",
"incumbent",
"party",
"first_elected",
"result",
"candidates"
] | [
"text",
"text",
"text",
"text",
"text",
"text"
] | SELECT COUNT("result") FROM florida_2_elections WHERE "district" = 'Florida 14' | dev | wikisql |
what's the first elected with district being florida 7 | florida_2_elections | [
"district",
"incumbent",
"party",
"first_elected",
"result",
"candidates"
] | [
"text",
"text",
"text",
"text",
"text",
"text"
] | SELECT "first_elected" FROM florida_2_elections WHERE "district" = 'Florida 7' | dev | wikisql |
who is the the candidates with incumbent being don fuqua | florida_2_elections | [
"district",
"incumbent",
"party",
"first_elected",
"result",
"candidates"
] | [
"text",
"text",
"text",
"text",
"text",
"text"
] | SELECT "candidates" FROM florida_2_elections WHERE "incumbent" = 'Don Fuqua' | dev | wikisql |
How many candidates were first elected in 1972? | election_results_1980 | [
"district",
"incumbent",
"party",
"first_elected",
"result",
"candidates"
] | [
"text",
"text",
"text",
"real",
"text",
"text"
] | SELECT COUNT("candidates") FROM election_results_1980 WHERE "first_elected" = 1972 | dev | wikisql |
What is the party with the candidates newt gingrich (r) 59.1% dock h. davis (d) 40.9%? | election_results_1980 | [
"district",
"incumbent",
"party",
"first_elected",
"result",
"candidates"
] | [
"text",
"text",
"text",
"real",
"text",
"text"
] | SELECT "party" FROM election_results_1980 WHERE "candidates" = 'Newt Gingrich (R) 59.1% Dock H. Davis (D) 40.9%' | dev | wikisql |
What is the earliest first elected for district georgia 1? | election_results_1980 | [
"district",
"incumbent",
"party",
"first_elected",
"result",
"candidates"
] | [
"text",
"text",
"text",
"real",
"text",
"text"
] | SELECT MIN("first_elected") FROM election_results_1980 WHERE "district" = 'Georgia 1' | dev | wikisql |
How many parties were for candidates newt gingrich (r) 59.1% dock h. davis (d) 40.9%? | election_results_1980 | [
"district",
"incumbent",
"party",
"first_elected",
"result",
"candidates"
] | [
"text",
"text",
"text",
"real",
"text",
"text"
] | SELECT COUNT("party") FROM election_results_1980 WHERE "candidates" = 'Newt Gingrich (R) 59.1% Dock H. Davis (D) 40.9%' | dev | wikisql |
How many incumbents were for district georgia 6? | election_results_1980 | [
"district",
"incumbent",
"party",
"first_elected",
"result",
"candidates"
] | [
"text",
"text",
"text",
"real",
"text",
"text"
] | SELECT COUNT("incumbent") FROM election_results_1980 WHERE "district" = 'Georgia 6' | dev | wikisql |
Name the district for tim lee hall | election_results_1976 | [
"district",
"incumbent",
"party",
"first_elected",
"result",
"candidates"
] | [
"text",
"text",
"text",
"real",
"text",
"text"
] | SELECT "district" FROM election_results_1976 WHERE "incumbent" = 'Tim Lee Hall' | dev | wikisql |
Name the number of first elected for phil crane | election_results_1976 | [
"district",
"incumbent",
"party",
"first_elected",
"result",
"candidates"
] | [
"text",
"text",
"text",
"real",
"text",
"text"
] | SELECT COUNT("first_elected") FROM election_results_1976 WHERE "incumbent" = 'Phil Crane' | dev | wikisql |
Name the party for tim lee hall | election_results_1976 | [
"district",
"incumbent",
"party",
"first_elected",
"result",
"candidates"
] | [
"text",
"text",
"text",
"real",
"text",
"text"
] | SELECT "party" FROM election_results_1976 WHERE "incumbent" = 'Tim Lee Hall' | dev | wikisql |
Name the candidates for illinois 15 | election_results_1976 | [
"district",
"incumbent",
"party",
"first_elected",
"result",
"candidates"
] | [
"text",
"text",
"text",
"real",
"text",
"text"
] | SELECT "candidates" FROM election_results_1976 WHERE "district" = 'Illinois 15' | dev | wikisql |
Name the first elected for abner j. mikva | election_results_1976 | [
"district",
"incumbent",
"party",
"first_elected",
"result",
"candidates"
] | [
"text",
"text",
"text",
"real",
"text",
"text"
] | SELECT "first_elected" FROM election_results_1976 WHERE "incumbent" = 'Abner J. Mikva' | dev | wikisql |
Name the total number of incumbent for first elected of 1944 | election_results_1976 | [
"district",
"incumbent",
"party",
"first_elected",
"result",
"candidates"
] | [
"text",
"text",
"text",
"real",
"text",
"text"
] | SELECT COUNT("incumbent") FROM election_results_1976 WHERE "first_elected" = 1944 | dev | wikisql |
How many incumbents come from alvin bush's district? | senate_elections | [
"district",
"incumbent",
"party",
"first_elected",
"result",
"candidates"
] | [
"text",
"text",
"text",
"real",
"text",
"text"
] | SELECT COUNT("candidates") FROM senate_elections WHERE "incumbent" = 'Alvin Bush' | dev | wikisql |
Who were the candidates in the Kentucky 4 voting district? | election_results_1948 | [
"district",
"incumbent",
"party",
"first_elected",
"result",
"candidates"
] | [
"text",
"text",
"text",
"text",
"text",
"text"
] | SELECT "candidates" FROM election_results_1948 WHERE "district" = 'Kentucky 4' | dev | wikisql |
How many times was incumbent Noble Jones Gregory first elected? | election_results_1948 | [
"district",
"incumbent",
"party",
"first_elected",
"result",
"candidates"
] | [
"text",
"text",
"text",
"text",
"text",
"text"
] | SELECT COUNT("first_elected") FROM election_results_1948 WHERE "incumbent" = 'Noble Jones Gregory' | dev | wikisql |
What was the result in the voting district Kentucky 2? | election_results_1948 | [
"district",
"incumbent",
"party",
"first_elected",
"result",
"candidates"
] | [
"text",
"text",
"text",
"text",
"text",
"text"
] | SELECT "result" FROM election_results_1948 WHERE "district" = 'Kentucky 2' | dev | wikisql |
What was the result of the election incumbent Brent Spence took place in? | election_results_1948 | [
"district",
"incumbent",
"party",
"first_elected",
"result",
"candidates"
] | [
"text",
"text",
"text",
"text",
"text",
"text"
] | SELECT "result" FROM election_results_1948 WHERE "incumbent" = 'Brent Spence' | dev | wikisql |
Which party won in the election in voting district Kentucky 5? | election_results_1948 | [
"district",
"incumbent",
"party",
"first_elected",
"result",
"candidates"
] | [
"text",
"text",
"text",
"text",
"text",
"text"
] | SELECT "party" FROM election_results_1948 WHERE "district" = 'Kentucky 5' | dev | wikisql |
List all candidates in the democratic party where the election had the incumbent Frank Chelf running. | election_results_1948 | [
"district",
"incumbent",
"party",
"first_elected",
"result",
"candidates"
] | [
"text",
"text",
"text",
"text",
"text",
"text"
] | SELECT "candidates" FROM election_results_1948 WHERE "party" = 'Democratic' AND "incumbent" = 'Frank Chelf' | dev | wikisql |
Which district is jamie l. whitten from? | election_results_1946 | [
"district",
"incumbent",
"party",
"first_elected",
"result",
"candidates"
] | [
"text",
"text",
"text",
"real",
"text",
"text"
] | SELECT "district" FROM election_results_1946 WHERE "incumbent" = 'Jamie L. Whitten' | dev | wikisql |
What candidates are from mississippi 6? | election_results_1946 | [
"district",
"incumbent",
"party",
"first_elected",
"result",
"candidates"
] | [
"text",
"text",
"text",
"real",
"text",
"text"
] | SELECT "candidates" FROM election_results_1946 WHERE "district" = 'Mississippi 6' | dev | wikisql |
What is the incumbent from 1941? | election_results_1946 | [
"district",
"incumbent",
"party",
"first_elected",
"result",
"candidates"
] | [
"text",
"text",
"text",
"real",
"text",
"text"
] | SELECT "incumbent" FROM election_results_1946 WHERE "first_elected" = 1941 | dev | wikisql |
What is the result for w. arthur winstead? | election_results_1946 | [
"district",
"incumbent",
"party",
"first_elected",
"result",
"candidates"
] | [
"text",
"text",
"text",
"real",
"text",
"text"
] | SELECT "result" FROM election_results_1946 WHERE "incumbent" = 'W. Arthur Winstead' | dev | wikisql |
How many were first elected in the Arkansas 4 district? | election_results_1946_2 | [
"district",
"incumbent",
"party",
"first_elected",
"result",
"candidates"
] | [
"text",
"text",
"text",
"real",
"text",
"text"
] | SELECT COUNT("first_elected") FROM election_results_1946_2 WHERE "district" = 'Arkansas 4' | dev | wikisql |
How many districts had William F. Norrell as the incumbent? | election_results_1946_2 | [
"district",
"incumbent",
"party",
"first_elected",
"result",
"candidates"
] | [
"text",
"text",
"text",
"real",
"text",
"text"
] | SELECT COUNT("district") FROM election_results_1946_2 WHERE "incumbent" = 'William F. Norrell' | dev | wikisql |
Which party has a first elected number bigger than 1939.0? | election_results_1946_2 | [
"district",
"incumbent",
"party",
"first_elected",
"result",
"candidates"
] | [
"text",
"text",
"text",
"real",
"text",
"text"
] | SELECT "party" FROM election_results_1946_2 WHERE "first_elected" > 1939.0 | dev | wikisql |
How many incumbents had a district of Arkansas 3? | election_results_1946_2 | [
"district",
"incumbent",
"party",
"first_elected",
"result",
"candidates"
] | [
"text",
"text",
"text",
"real",
"text",
"text"
] | SELECT COUNT("incumbent") FROM election_results_1946_2 WHERE "district" = 'Arkansas 3' | dev | wikisql |
What party did the incumbent from the Arkansas 5 district belong to? | election_results_1944 | [
"district",
"incumbent",
"party",
"first_elected",
"result",
"candidates"
] | [
"text",
"text",
"text",
"real",
"text",
"text"
] | SELECT "party" FROM election_results_1944 WHERE "district" = 'Arkansas 5' | dev | wikisql |
What party did the incumbent of the Arkansas 6 district belong to? | election_results_1944 | [
"district",
"incumbent",
"party",
"first_elected",
"result",
"candidates"
] | [
"text",
"text",
"text",
"real",
"text",
"text"
] | SELECT "party" FROM election_results_1944 WHERE "district" = 'Arkansas 6' | dev | wikisql |
What is the earliest years any of the incumbents were first elected? | election_results_1944 | [
"district",
"incumbent",
"party",
"first_elected",
"result",
"candidates"
] | [
"text",
"text",
"text",
"real",
"text",
"text"
] | SELECT MIN("first_elected") FROM election_results_1944 | dev | wikisql |
What party did incumbent Brooks Hays belong to? | election_results_1944 | [
"district",
"incumbent",
"party",
"first_elected",
"result",
"candidates"
] | [
"text",
"text",
"text",
"real",
"text",
"text"
] | SELECT "party" FROM election_results_1944 WHERE "incumbent" = 'Brooks Hays' | dev | wikisql |
What kind of party is the district in Alabama 1? | us_election_results | [
"district",
"incumbent",
"party",
"first_elected",
"result",
"candidates"
] | [
"text",
"text",
"text",
"real",
"text",
"text"
] | SELECT "party" FROM us_election_results WHERE "district" = 'Alabama 1' | dev | wikisql |
How many in lost renomination results were elected first? | us_election_results | [
"district",
"incumbent",
"party",
"first_elected",
"result",
"candidates"
] | [
"text",
"text",
"text",
"real",
"text",
"text"
] | SELECT "first_elected" FROM us_election_results WHERE "result" = 'Lost renomination' | dev | wikisql |
How many in total were elected first in lost renomination? | us_election_results | [
"district",
"incumbent",
"party",
"first_elected",
"result",
"candidates"
] | [
"text",
"text",
"text",
"real",
"text",
"text"
] | SELECT COUNT("first_elected") FROM us_election_results WHERE "result" = 'Lost renomination' | dev | wikisql |
In what district was John E. Miller the incumbent? | election_results_1932 | [
"district",
"incumbent",
"party",
"first_elected",
"result",
"candidates"
] | [
"text",
"text",
"text",
"real",
"text",
"text"
] | SELECT "district" FROM election_results_1932 WHERE "incumbent" = 'John E. Miller' | dev | wikisql |
In how many districts was the incumbent David Delano Glover? | election_results_1932 | [
"district",
"incumbent",
"party",
"first_elected",
"result",
"candidates"
] | [
"text",
"text",
"text",
"real",
"text",
"text"
] | SELECT COUNT("district") FROM election_results_1932 WHERE "incumbent" = 'David Delano Glover' | dev | wikisql |
What year was incumbent Claude Fuller first elected? | election_results_1932 | [
"district",
"incumbent",
"party",
"first_elected",
"result",
"candidates"
] | [
"text",
"text",
"text",
"real",
"text",
"text"
] | SELECT "first_elected" FROM election_results_1932 WHERE "incumbent" = 'Claude Fuller' | dev | wikisql |
Who ran in the election where Claude Fuller was the incumbent? | election_results_1932 | [
"district",
"incumbent",
"party",
"first_elected",
"result",
"candidates"
] | [
"text",
"text",
"text",
"real",
"text",
"text"
] | SELECT "candidates" FROM election_results_1932 WHERE "incumbent" = 'Claude Fuller' | dev | wikisql |
What is the result for thomas s. mcmillan? | election_results_1930 | [
"district",
"incumbent",
"party",
"first_elected",
"result",
"candidates"
] | [
"text",
"text",
"text",
"real",
"text",
"text"
] | SELECT "result" FROM election_results_1930 WHERE "incumbent" = 'Thomas S. McMillan' | dev | wikisql |
Name the candidate for south carolina 1? | election_results_1930 | [
"district",
"incumbent",
"party",
"first_elected",
"result",
"candidates"
] | [
"text",
"text",
"text",
"real",
"text",
"text"
] | SELECT "candidates" FROM election_results_1930 WHERE "district" = 'South Carolina 1' | dev | wikisql |
What is the party for south carolina 3? | election_results_1930 | [
"district",
"incumbent",
"party",
"first_elected",
"result",
"candidates"
] | [
"text",
"text",
"text",
"real",
"text",
"text"
] | SELECT "party" FROM election_results_1930 WHERE "district" = 'South Carolina 3' | dev | wikisql |
What is the party for south carolina 3? | election_results_1930 | [
"district",
"incumbent",
"party",
"first_elected",
"result",
"candidates"
] | [
"text",
"text",
"text",
"real",
"text",
"text"
] | SELECT "party" FROM election_results_1930 WHERE "district" = 'South Carolina 3' | dev | wikisql |
What is the result for south carolina 4? | election_results_1930 | [
"district",
"incumbent",
"party",
"first_elected",
"result",
"candidates"
] | [
"text",
"text",
"text",
"real",
"text",
"text"
] | SELECT "result" FROM election_results_1930 WHERE "district" = 'South Carolina 4' | dev | wikisql |
what's the district with incumbent being richard j. welch | election_results_1930_2 | [
"district",
"incumbent",
"party",
"first_elected",
"result",
"candidates"
] | [
"text",
"text",
"text",
"real",
"text",
"text"
] | SELECT "district" FROM election_results_1930_2 WHERE "incumbent" = 'Richard J. Welch' | dev | wikisql |
what's the districtwith party being democratic | election_results_1930_2 | [
"district",
"incumbent",
"party",
"first_elected",
"result",
"candidates"
] | [
"text",
"text",
"text",
"real",
"text",
"text"
] | SELECT "district" FROM election_results_1930_2 WHERE "party" = 'Democratic' | dev | wikisql |
what's the district with candidates being harry lane englebright (r) unopposed | election_results_1930_2 | [
"district",
"incumbent",
"party",
"first_elected",
"result",
"candidates"
] | [
"text",
"text",
"text",
"real",
"text",
"text"
] | SELECT "district" FROM election_results_1930_2 WHERE "candidates" = 'Harry Lane Englebright (R) Unopposed' | dev | wikisql |
how many candidates with district being california 7 | election_results_1930_2 | [
"district",
"incumbent",
"party",
"first_elected",
"result",
"candidates"
] | [
"text",
"text",
"text",
"real",
"text",
"text"
] | SELECT COUNT("candidates") FROM election_results_1930_2 WHERE "district" = 'California 7' | dev | wikisql |
what's the party with incumbent being william e. evans | election_results_1930_2 | [
"district",
"incumbent",
"party",
"first_elected",
"result",
"candidates"
] | [
"text",
"text",
"text",
"real",
"text",
"text"
] | SELECT "party" FROM election_results_1930_2 WHERE "incumbent" = 'William E. Evans' | dev | wikisql |
What was the result of the election featuring william madison whittington? | election_results_1928 | [
"district",
"incumbent",
"party",
"first_elected",
"result",
"candidates"
] | [
"text",
"text",
"text",
"real",
"text",
"text"
] | SELECT "result" FROM election_results_1928 WHERE "incumbent" = 'William Madison Whittington' | dev | wikisql |
what is the total number of results where the district is south carolina 5? | election_results_1928_2 | [
"district",
"incumbent",
"party",
"first_elected",
"result",
"candidates"
] | [
"text",
"text",
"text",
"real",
"text",
"text"
] | SELECT COUNT("result") FROM election_results_1928_2 WHERE "district" = 'South Carolina 5' | dev | wikisql |
who is the candidate in district south carolina 2? | election_results_1928_2 | [
"district",
"incumbent",
"party",
"first_elected",
"result",
"candidates"
] | [
"text",
"text",
"text",
"real",
"text",
"text"
] | SELECT "candidates" FROM election_results_1928_2 WHERE "district" = 'South Carolina 2' | dev | wikisql |
what year was william francis stevenson first elected? | election_results_1928_2 | [
"district",
"incumbent",
"party",
"first_elected",
"result",
"candidates"
] | [
"text",
"text",
"text",
"real",
"text",
"text"
] | SELECT "first_elected" FROM election_results_1928_2 WHERE "incumbent" = 'William Francis Stevenson' | dev | wikisql |
What political party for burton e. sweet? | election_results_1920 | [
"district",
"incumbent",
"party",
"first_elected",
"result",
"candidates"
] | [
"text",
"text",
"text",
"real",
"text",
"text"
] | SELECT "party" FROM election_results_1920 WHERE "incumbent" = 'Burton E. Sweet' | dev | wikisql |
how many locations have a record of 14-38? | raptors_1995_96 | [
"game",
"date",
"team",
"score",
"high_points",
"high_rebounds",
"high_assists",
"location_attendance",
"record"
] | [
"real",
"text",
"text",
"text",
"text",
"text",
"text",
"text",
"text"
] | SELECT COUNT("location_attendance") FROM raptors_1995_96 WHERE "record" = '14-38' | dev | wikisql |
What number episode in the season is "The Family Lawyer"? | tv_episode_data_3 | [
"no_in_series",
"no_in_season",
"title",
"directed_by",
"written_by",
"original_air_date",
"u_s_viewers_millions"
] | [
"real",
"real",
"text",
"text",
"text",
"text",
"text"
] | SELECT "no_in_season" FROM tv_episode_data_3 WHERE "title" = '"The Family Lawyer"' | dev | wikisql |
Who wrote the episode that received 1.83 million U.S. viewers? | tv_episode_data_3 | [
"no_in_series",
"no_in_season",
"title",
"directed_by",
"written_by",
"original_air_date",
"u_s_viewers_millions"
] | [
"real",
"real",
"text",
"text",
"text",
"text",
"text"
] | SELECT "written_by" FROM tv_episode_data_3 WHERE "u_s_viewers_millions" = '1.83' | dev | wikisql |
What is the original air date of the episode directed by Jeff Melman? | tv_episode_data_3 | [
"no_in_series",
"no_in_season",
"title",
"directed_by",
"written_by",
"original_air_date",
"u_s_viewers_millions"
] | [
"real",
"real",
"text",
"text",
"text",
"text",
"text"
] | SELECT "original_air_date" FROM tv_episode_data_3 WHERE "directed_by" = 'Jeff Melman' | dev | wikisql |
Which launch date involved the Driade? | minerva_corvette | [
"name",
"pennant_number",
"builder",
"laid_down",
"launched",
"commissioned",
"current_status"
] | [
"text",
"text",
"text",
"text",
"text",
"text",
"text"
] | SELECT "launched" FROM minerva_corvette WHERE "name" = 'Driade' | dev | wikisql |
What is the median household income of sacramento? | california_income_locations | [
"county",
"population",
"per_capita_income",
"median_household_income",
"median_family_income"
] | [
"text",
"real",
"text",
"text",
"text"
] | SELECT "median_household_income" FROM california_income_locations WHERE "county" = 'Sacramento' | dev | wikisql |
What is the per capita income of shasta? | california_income_locations | [
"county",
"population",
"per_capita_income",
"median_household_income",
"median_family_income"
] | [
"text",
"real",
"text",
"text",
"text"
] | SELECT "per_capita_income" FROM california_income_locations WHERE "county" = 'Shasta' | dev | wikisql |
Name the median family income for riverside | california_income_locations | [
"county",
"population",
"per_capita_income",
"median_household_income",
"median_family_income"
] | [
"text",
"real",
"text",
"text",
"text"
] | SELECT "median_family_income" FROM california_income_locations WHERE "county" = 'Riverside' | dev | wikisql |
What is the median household income of butte? | california_income_locations | [
"county",
"population",
"per_capita_income",
"median_household_income",
"median_family_income"
] | [
"text",
"real",
"text",
"text",
"text"
] | SELECT "median_household_income" FROM california_income_locations WHERE "county" = 'Butte' | dev | wikisql |
What club got 239 points against? | rugby_stats_2 | [
"club",
"played",
"won",
"drawn",
"lost",
"points_for",
"points_against",
"tries_for",
"tries_against",
"try_bonus",
"losing_bonus",
"points"
] | [
"text",
"text",
"text",
"text",
"text",
"text",
"text",
"text",
"text",
"text",
"text",
"text"
] | SELECT "club" FROM rugby_stats_2 WHERE "points_against" = '239' | dev | wikisql |
What is the value of the points column when the value of the column lost is "lost" | rugby_stats_2 | [
"club",
"played",
"won",
"drawn",
"lost",
"points_for",
"points_against",
"tries_for",
"tries_against",
"try_bonus",
"losing_bonus",
"points"
] | [
"text",
"text",
"text",
"text",
"text",
"text",
"text",
"text",
"text",
"text",
"text",
"text"
] | SELECT "points" FROM rugby_stats_2 WHERE "lost" = 'Lost' | dev | wikisql |
How many tries against got the club with 62 tries for? | rugby_stats_2 | [
"club",
"played",
"won",
"drawn",
"lost",
"points_for",
"points_against",
"tries_for",
"tries_against",
"try_bonus",
"losing_bonus",
"points"
] | [
"text",
"text",
"text",
"text",
"text",
"text",
"text",
"text",
"text",
"text",
"text",
"text"
] | SELECT "tries_against" FROM rugby_stats_2 WHERE "tries_for" = '62' | dev | wikisql |
What group info is available for the 56.5 kg weight? | horse_race_results | [
"result",
"date",
"race",
"venue",
"group",
"distance",
"weight_kg",
"jockey",
"winner_2nd"
] | [
"text",
"text",
"text",
"text",
"text",
"text",
"text",
"text",
"text"
] | SELECT "group" FROM horse_race_results WHERE "weight_kg" = '56.5' | dev | wikisql |
What was the result for the railway stakes race? | horse_race_results | [
"result",
"date",
"race",
"venue",
"group",
"distance",
"weight_kg",
"jockey",
"winner_2nd"
] | [
"text",
"text",
"text",
"text",
"text",
"text",
"text",
"text",
"text"
] | SELECT "result" FROM horse_race_results WHERE "race" = 'Railway Stakes' | dev | wikisql |
What district is incument terry kilgore from? | va_elections_2007 | [
"district",
"incumbent",
"party",
"elected",
"status",
"2007_result"
] | [
"text",
"text",
"text",
"real",
"text",
"text"
] | SELECT "district" FROM va_elections_2007 WHERE "incumbent" = 'Terry Kilgore' | dev | wikisql |
How many times was incumbent onzlee ware elected? | va_elections_2007 | [
"district",
"incumbent",
"party",
"elected",
"status",
"2007_result"
] | [
"text",
"text",
"text",
"real",
"text",
"text"
] | SELECT COUNT("elected") FROM va_elections_2007 WHERE "incumbent" = 'Onzlee Ware' | dev | wikisql |
How many election results are there from the 19th district? | va_elections_2007 | [
"district",
"incumbent",
"party",
"elected",
"status",
"2007_result"
] | [
"text",
"text",
"text",
"real",
"text",
"text"
] | SELECT COUNT("2007_result") FROM va_elections_2007 WHERE "district" = '19th' | dev | wikisql |
What was the last year someone was elected to the 14th district? | va_elections_2007 | [
"district",
"incumbent",
"party",
"elected",
"status",
"2007_result"
] | [
"text",
"text",
"text",
"real",
"text",
"text"
] | SELECT MAX("elected") FROM va_elections_2007 WHERE "district" = '14th' | dev | wikisql |
What was the score against san antonio? | raptors_97_98 | [
"game",
"date",
"team",
"score",
"high_points",
"high_rebounds",
"high_assists",
"location_attendance",
"record"
] | [
"real",
"text",
"text",
"text",
"text",
"text",
"text",
"text",
"text"
] | SELECT "score" FROM raptors_97_98 WHERE "team" = 'San Antonio' | dev | wikisql |
How many games did the team play when they were 1-3? | raptors_97_98 | [
"game",
"date",
"team",
"score",
"high_points",
"high_rebounds",
"high_assists",
"location_attendance",
"record"
] | [
"real",
"text",
"text",
"text",
"text",
"text",
"text",
"text",
"text"
] | SELECT COUNT("score") FROM raptors_97_98 WHERE "record" = '1-3' | dev | wikisql |
Who was the opposing team for game 53? | raptors_game_stats_3 | [
"game",
"date",
"team",
"score",
"high_points",
"high_rebounds",
"high_assists",
"location_attendance",
"record"
] | [
"real",
"text",
"text",
"text",
"text",
"text",
"text",
"text",
"text"
] | SELECT "team" FROM raptors_game_stats_3 WHERE "game" = 53 | dev | wikisql |
How many games were played when the record was 26-21? | raptors_game_stats_3 | [
"game",
"date",
"team",
"score",
"high_points",
"high_rebounds",
"high_assists",
"location_attendance",
"record"
] | [
"real",
"text",
"text",
"text",
"text",
"text",
"text",
"text",
"text"
] | SELECT COUNT("game") FROM raptors_game_stats_3 WHERE "record" = '26-21' | dev | wikisql |
How many people had the high assists @ minnesota? | raptors_game_stats_4 | [
"game",
"date",
"team",
"score",
"high_points",
"high_rebounds",
"high_assists",
"location_attendance",
"record"
] | [
"real",
"text",
"text",
"text",
"text",
"text",
"text",
"text",
"text"
] | SELECT COUNT("high_assists") FROM raptors_game_stats_4 WHERE "team" = '@ Minnesota' | dev | wikisql |
Who was the high rebounder against charlotte? | raptors_game_stats_4 | [
"game",
"date",
"team",
"score",
"high_points",
"high_rebounds",
"high_assists",
"location_attendance",
"record"
] | [
"real",
"text",
"text",
"text",
"text",
"text",
"text",
"text",
"text"
] | SELECT "high_rebounds" FROM raptors_game_stats_4 WHERE "team" = 'Charlotte' | dev | wikisql |
Where did the team play and what was the attendance against new jersey? | raptors_game_stats_4 | [
"game",
"date",
"team",
"score",
"high_points",
"high_rebounds",
"high_assists",
"location_attendance",
"record"
] | [
"real",
"text",
"text",
"text",
"text",
"text",
"text",
"text",
"text"
] | SELECT "location_attendance" FROM raptors_game_stats_4 WHERE "team" = 'New Jersey' | dev | wikisql |
What day was the attendance at the staples center 18,176? | raptors_game_stats_4 | [
"game",
"date",
"team",
"score",
"high_points",
"high_rebounds",
"high_assists",
"location_attendance",
"record"
] | [
"real",
"text",
"text",
"text",
"text",
"text",
"text",
"text",
"text"
] | SELECT "date" FROM raptors_game_stats_4 WHERE "location_attendance" = 'Staples Center 18,176' | dev | wikisql |
what's the turing complete with numeral system being decimal | abc_computer_info | [
"name",
"first_operational",
"numeral_system",
"computing_mechanism",
"programming",
"turing_complete"
] | [
"text",
"text",
"text",
"text",
"text",
"text"
] | SELECT "turing_complete" FROM abc_computer_info WHERE "numeral_system" = 'Decimal' | dev | wikisql |
what's the computing mechanbeingm with name being atanasoff–berry computer (us) | abc_computer_info | [
"name",
"first_operational",
"numeral_system",
"computing_mechanism",
"programming",
"turing_complete"
] | [
"text",
"text",
"text",
"text",
"text",
"text"
] | SELECT "computing_mechanism" FROM abc_computer_info WHERE "name" = 'Atanasoff–Berry Computer (US)' | dev | wikisql |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.