instruction
stringclasses
1 value
input
stringlengths
12
244
output
stringlengths
22
468
Translate the following into a SQL query
what is the district when the party is federalist and first elected is 1814?
SELECT District FROM table WHERE Party = Federalist AND First elected = 1814
Translate the following into a SQL query
Name the candidates for pennsylvania 14
SELECT Candidates FROM table WHERE District = Pennsylvania 14
Translate the following into a SQL query
Name the incumbent for jacob spangler (dr) 67.1% jacob hay (f) 32.9%
SELECT Incumbent FROM table WHERE Candidates = Jacob Spangler (DR) 67.1% Jacob Hay (F) 32.9%
Translate the following into a SQL query
Name the most first elected
SELECT MAX First elected FROM table
Translate the following into a SQL query
Name the number of candidates for samuel d. ingham
SELECT COUNT Candidates FROM table WHERE Incumbent = Samuel D. Ingham
Translate the following into a SQL query
Which district did William A. Burwell (Dr) belong to?
SELECT District FROM table WHERE Candidates = William A. Burwell (DR)
Translate the following into a SQL query
What was the result in the district represented by Thomas R. Gold?
SELECT Result FROM table WHERE Incumbent = Thomas R. Gold
Translate the following into a SQL query
Who is every incumbent when Kentucky 2 is the district?
SELECT Incumbent FROM table WHERE District = Kentucky 2
Translate the following into a SQL query
Who is first elected when Kentucky 6 is the district?
SELECT First elected FROM table WHERE District = Kentucky 6
Translate the following into a SQL query
What is every district for incumbent Joseph Desha?
SELECT District FROM table WHERE Incumbent = Joseph Desha
Translate the following into a SQL query
Which party experienced a result of lost re-election democratic-republican hold?
SELECT Party FROM table WHERE Result = Lost re-election Democratic-Republican hold
Translate the following into a SQL query
How many districts have John C. Calhoun as the incumbent?
SELECT COUNT District FROM table WHERE Incumbent = John C. Calhoun
Translate the following into a SQL query
Who was the incumbent in the Kentucky 8 district?
SELECT Incumbent FROM table WHERE District = Kentucky 8
Translate the following into a SQL query
What was the result in the election in the Kentucky 8 district?
SELECT Result FROM table WHERE District = Kentucky 8
Translate the following into a SQL query
What was the result in the election in the Kentucky 1 district?
SELECT Result FROM table WHERE District = Kentucky 1
Translate the following into a SQL query
What district had an election with incumbent john smilie?
SELECT District FROM table WHERE Incumbent = John Smilie
Translate the following into a SQL query
How many districts first elected someone in 1808 and had george smith as the incumbent?
SELECT COUNT District FROM table WHERE First elected = 1808 AND Incumbent = George Smith
Translate the following into a SQL query
Who was the incumbent in Virginia 3?
SELECT Incumbent FROM table WHERE District = Virginia 3
Translate the following into a SQL query
What incumbent was a federalist that was first elected in 1803?
SELECT Incumbent FROM table WHERE Party = Federalist AND First elected = 1803
Translate the following into a SQL query
How many parties were first elected in 1805?
SELECT COUNT Party FROM table WHERE First elected = 1805
Translate the following into a SQL query
What district was John Dawson from?
SELECT District FROM table WHERE Incumbent = John Dawson
Translate the following into a SQL query
Who were the running candidates when Samuel Riker was the incumbent?
SELECT Candidates FROM table WHERE Incumbent = Samuel Riker
Translate the following into a SQL query
Who were the candidates in the district where the incumbent was Nathaniel Macon?
SELECT Candidates FROM table WHERE Incumbent = Nathaniel Macon
Translate the following into a SQL query
What party did the incumbent Joseph Pearson belong to?
SELECT Party FROM table WHERE Incumbent = Joseph Pearson
Translate the following into a SQL query
How many incumbents are there in Pennsylvania 5?
SELECT COUNT Incumbent FROM table WHERE District = Pennsylvania 5
Translate the following into a SQL query
What are the parties listed for Pennsylvania 8?
SELECT Party FROM table WHERE District = Pennsylvania 8
Translate the following into a SQL query
Name the incumbent for candidates Joseph Hiester (dr) 83.2% Roswell Wells (f) 16.8%.
SELECT Incumbent FROM table WHERE Candidates = Joseph Hiester (DR) 83.2% Roswell Wells (F) 16.8%
Translate the following into a SQL query
What was the result for Andrew Gregg?
SELECT Result FROM table WHERE Incumbent = Andrew Gregg
Translate the following into a SQL query
What was the result for Pennsylvania 8?
SELECT Result FROM table WHERE District = Pennsylvania 8
Translate the following into a SQL query
What party did the incumbent from the Virginia 5 district who was re-elected and was first elected in 1797 belong to?
SELECT Party FROM table WHERE Result = Re-elected AND First elected = 1797 AND District = Virginia 5
Translate the following into a SQL query
When was the incumbent first elected in the district where the result was a democratic-republican gain?
SELECT First elected FROM table WHERE Result = Democratic-Republican gain
Translate the following into a SQL query
In what district was the incumbent Edwin Gray?
SELECT District FROM table WHERE Incumbent = Edwin Gray
Translate the following into a SQL query
When was the incumbent from the Virginia 10 district first elected?
SELECT First elected FROM table WHERE District = Virginia 10
Translate the following into a SQL query
Name the result for walter jones (dr) 99.0% henry lee (f) 1.0%
SELECT Result FROM table WHERE Candidates = Walter Jones (DR) 99.0% Henry Lee (F) 1.0%
Translate the following into a SQL query
Name the district for matthew clay
SELECT District FROM table WHERE Incumbent = Matthew Clay
Translate the following into a SQL query
Name the number of first elected for john smith
SELECT COUNT First elected FROM table WHERE Incumbent = John Smith
Translate the following into a SQL query
Name the incumbent for virginia 18
SELECT Incumbent FROM table WHERE District = Virginia 18
Translate the following into a SQL query
Name the district for john randolph (dr)
SELECT District FROM table WHERE Candidates = John Randolph (DR)
Translate the following into a SQL query
Name the incumbent for virginia 4
SELECT Incumbent FROM table WHERE District = Virginia 4
Translate the following into a SQL query
When was the earliest person elected?
SELECT MIN First elected FROM table
Translate the following into a SQL query
What party was re-elected to Virginia 12?
SELECT Party FROM table WHERE Result = Re-elected AND District = Virginia 12
Translate the following into a SQL query
What is the latest first elected?
SELECT MAX First elected FROM table
Translate the following into a SQL query
How many times were the candidates leven powell (f) 63.8% roger west (dr) 36.4%?
SELECT COUNT First elected FROM table WHERE Candidates = Leven Powell (F) 63.8% Roger West (DR) 36.4%
Translate the following into a SQL query
What is the district with the candidates leven powell (f) 63.8% roger west (dr) 36.4%?
SELECT District FROM table WHERE Candidates = Leven Powell (F) 63.8% Roger West (DR) 36.4%
Translate the following into a SQL query
What is the district with the incumbent john nicholas?
SELECT District FROM table WHERE Incumbent = John Nicholas
Translate the following into a SQL query
How many were in district virginia 6?
SELECT COUNT Candidates FROM table WHERE District = Virginia 6
Translate the following into a SQL query
If the district is Virginia 8, who is the Incumbent?
SELECT Incumbent FROM table WHERE District = Virginia 8
Translate the following into a SQL query
If the district is Virginia 17, who are the candidates?
SELECT Candidates FROM table WHERE District = Virginia 17
Translate the following into a SQL query
In how many different parts was the incumbent Abraham B. Venable?
SELECT COUNT Party FROM table WHERE Incumbent = Abraham B. Venable
Translate the following into a SQL query
What is the date for the mount panorama circuit?
SELECT Date FROM table WHERE Circuit = Mount Panorama Circuit
Translate the following into a SQL query
What was the location for the date 7–10 october?
SELECT City / State FROM table WHERE Date = 7–10 October
Translate the following into a SQL query
Who handled production for the race when the championship went to david wall and challenge was jordan ormsby?
SELECT Production FROM table WHERE Championship = David Wall AND Challenge = Jordan Ormsby
Translate the following into a SQL query
Which city and state hosted the adelaide street circuit?
SELECT City / State FROM table WHERE Circuit = Adelaide Street Circuit
Translate the following into a SQL query
Which circuit was held on 25–28 march?
SELECT Circuit FROM table WHERE Date = 25–28 March
Translate the following into a SQL query
How many productions are shown for rd 2?
SELECT COUNT Production FROM table WHERE Rd. = Rd 2
Translate the following into a SQL query
Name the writers for 46 in series
SELECT Writer(s) FROM table WHERE No. in series = 46
Translate the following into a SQL query
Name the production code for 60 number in series
SELECT Production code FROM table WHERE No. in series = 60
Translate the following into a SQL query
what is the title of the episode with the director pamela fryman and the production code 2alh07?
SELECT Title FROM table WHERE Director = Pamela Fryman AND Production code = 2ALH07
Translate the following into a SQL query
Which occurence has the matrix sim marked as 0.925?
SELECT Occurrence FROM table WHERE Matrix Sim = 0.925
Translate the following into a SQL query
What is the detailed family information where the sequence is aagtact?
SELECT COUNT Detailed Family Information FROM table WHERE Sequence = aAGTAct
Translate the following into a SQL query
What occurence has 0.925 listed as the matrix sim?
SELECT MAX Occurrence FROM table WHERE Matrix Sim = 0.925
Translate the following into a SQL query
What is the number listed in from for the Krueppel Like Transcription Factors?
SELECT MIN From FROM table WHERE Detailed Family Information = Krueppel like transcription factors
Translate the following into a SQL query
What is the smallest number listed in the from category?
SELECT MIN From FROM table
Translate the following into a SQL query
What is the conserved in mus musculus listing for sequence aagtact?
SELECT Conserved in Mus Musculus FROM table WHERE Sequence = aAGTAct
Translate the following into a SQL query
What is the nt identity when the species is drosophilia melanogaster?
SELECT NT Identity FROM table WHERE Species = Drosophilia melanogaster
Translate the following into a SQL query
What is the protein name when aa length is 202 aa?
SELECT Protein Name FROM table WHERE AA Length = 202 aa
Translate the following into a SQL query
What is the protein name when the e-value is 2.50e-41?
SELECT Protein Name FROM table WHERE E-Value = 2.50E-41
Translate the following into a SQL query
What is the aa length when the protein name is c11orf73?
SELECT AA Length FROM table WHERE Protein Name = C11orf73
Translate the following into a SQL query
How many times is the accession number xp_001843282?
SELECT COUNT Common Name FROM table WHERE Accession Number = XP_001843282
Translate the following into a SQL query
How many titles have U.S. viewers 1.66 million.
SELECT COUNT Title FROM table WHERE U.S. viewers (millions) = 1.66
Translate the following into a SQL query
What is every title when U.S. viewers is 1.04 million.
SELECT Title FROM table WHERE U.S. viewers (millions) = 1.04
Translate the following into a SQL query
What is the highest number in series with director as Phil Abraham?
SELECT MAX No. in series FROM table WHERE Directed by = Phil Abraham
Translate the following into a SQL query
How many entries for number in series when director is Bryan Cranston?
SELECT COUNT No. in series FROM table WHERE Directed by = Bryan Cranston
Translate the following into a SQL query
What is the earliest episode that was watched by 1.32 million viewers?
SELECT MIN No. in series FROM table WHERE U.S. viewers (millions) = 1.32
Translate the following into a SQL query
What is the latest episode written by John Shiban & Thomas Schnauz?
SELECT MAX No. in series FROM table WHERE Written by = John Shiban & Thomas Schnauz
Translate the following into a SQL query
What is the series number of the episode "Fly"?
SELECT COUNT No. in series FROM table WHERE Title = "Fly"
Translate the following into a SQL query
Who directed the eposide that was watched by 1.95 million US viewers?
SELECT Directed by FROM table WHERE U.S. viewers (millions) = 1.95
Translate the following into a SQL query
How many episodes are there for the three darts challenge with Sharon Osbourne?
SELECT MAX Episode Number FROM table WHERE Three Darts Challenge = Sharon Osbourne
Translate the following into a SQL query
What musical performances aired on 5 April 2010?
SELECT Musical Performance FROM table WHERE Air Date = 5 April 2010
Translate the following into a SQL query
What were the guests that aired on 7 June 2010?
SELECT Guests FROM table WHERE Air Date = 7 June 2010
Translate the following into a SQL query
Who was in the three darts challenge that aired on 10 may 2010?
SELECT Three Darts Challenge FROM table WHERE Air Date = 10 May 2010
Translate the following into a SQL query
Name the ends lost for canada
SELECT Ends Lost FROM table WHERE Country = Canada
Translate the following into a SQL query
Name the least ends won for anna kubešková
SELECT MIN Ends Won FROM table WHERE Skip = Anna Kubešková
Translate the following into a SQL query
Name the number of ends lost for 6 stolen ends
SELECT COUNT Ends Lost FROM table WHERE Stolen Ends = 6
Translate the following into a SQL query
When gniazdo is polish what is proto-slavic?
SELECT Proto-Slavic FROM table WHERE Polish = gniazdo
Translate the following into a SQL query
When рука / ruka is the serbo-croatian what is the macedonian?
SELECT Macedonian FROM table WHERE Serbo-Croatian = рука / ruka
Translate the following into a SQL query
When риба (ríba) is the macedonian what is the proto-slavic?
SELECT Proto-Slavic FROM table WHERE Macedonian = риба (ríba)
Translate the following into a SQL query
When гн(иј)ездо / gn(ij)ezdo is the serbo-croatian how many proto-slavics are there?
SELECT COUNT Proto-Slavic FROM table WHERE Serbo-Croatian = гн(иј)ездо / gn(ij)ezdo
Translate the following into a SQL query
When рыба (rýba) is the belarusian how many slovenes are there?
SELECT COUNT Slovene FROM table WHERE Belarusian = рыба (rýba)
Translate the following into a SQL query
When вуха (vúkha) is the belarusian how many slovaks are there?
SELECT COUNT Slovak FROM table WHERE Belarusian = вуха (vúkha)
Translate the following into a SQL query
How long does the 2579km route take?
SELECT 82.30 hrs(~3.5 days) FROM table WHERE 4286km = 2579km
Translate the following into a SQL query
What is the name of the only route that runs to bhavnagar?
SELECT Vivek Express /15905/15906 FROM table WHERE Kanyakumari = Bhavnagar
Translate the following into a SQL query
What is every original air date for the number in season of 7?
SELECT Original air date FROM table WHERE No. in season = 7
Translate the following into a SQL query
What is the number of participating parties when registered voters totaled 643629?
SELECT COUNT Participating parties FROM table WHERE Registered voters = 643629
Translate the following into a SQL query
What is the electoral district when total candidates were 35?
SELECT Electoral District FROM table WHERE Total candidates = 35
Translate the following into a SQL query
What is the number of seats in congress when the electoral district is Ucayali?
SELECT COUNT Seats in Congress FROM table WHERE Electoral District = Ucayali
Translate the following into a SQL query
What is the number of seats in congress when the candidates per party is 6?
SELECT COUNT Seats in Congress FROM table WHERE Candidates per party = 6
Translate the following into a SQL query
What is the number of total candidates when registered voters is 47742?
SELECT Total candidates FROM table WHERE Registered voters = 47742
Translate the following into a SQL query
Where does the judge who serves Beacon Falls , Naugatuck , Middlebury , Prospect reside?
SELECT Judges residence FROM table WHERE Municipalities served = Beacon Falls , Naugatuck , Middlebury , Prospect
Translate the following into a SQL query
What district is the court located in Tolland?
SELECT MAX District FROM table WHERE Location of court = Tolland