Simple Question (Direct)
Simple Question
Q2299197
P39
Q12737077
USER
Which occupations were the positions for which Solomon Comstock were appointed ?
(Q2299197,P39,c(Q12737077))
action filter_type
action find
entity Q2299197
relation P39
type Q12737077
['Q2299197', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?u WHERE { resource:Q2299197 property:P39 ?u . ?u rdf:type ontology:Q12737077 }
Solomon Comstock
action filter_type
action find
entity Solomon Comstock
relation position held
type occupation
['Solomon Comstock', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?u WHERE { resource:Solomon_Comstock property:position_held ?u . ?u rdf:type ontology:occupation }
[]
occupation
Q13218630 Q17505193 Q21363942
SYSTEM
United States representative, member of the Minnesota House of Representatives, member of the State Senate of Minnesota
Q13218630 Q17505193 Q21363942
(Q2299197,P39,c(Q12737077))
action filter_type
action find
entity Q2299197
relation P39
type Q12737077
The [ANSWERS] were the positions for which Solomon Comstock were appointed
['Q2299197', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?u WHERE { resource:Q2299197 property:P39 ?u . ?u rdf:type ontology:Q12737077 }
United States representative member of the Minnesota House of Representatives member of the State Senate of Minnesota
The United States representative, member of the Minnesota House of Representatives and member of the State Senate of Minnesota were the positions for which Solomon Comstock were appointed
United States representative member of the Minnesota House of Representatives member of the State Senate of Minnesota
action filter_type
action find
entity Solomon Comstock
relation position held
type occupation
['Solomon Comstock', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?u WHERE { resource:Solomon_Comstock property:position_held ?u . ?u rdf:type ontology:occupation }
[]
Clarification
Simple Question|Single Entity|Indirect
Q13218630
P1001
Q15617994
USER
Which administrative territory comes under the supervision of that occupation ?
(Q13218630,P1001,c(Q15617994))
action filter_type
action find
entity Q13218630
relation P1001
type Q15617994
['Q13218630', 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { resource:Q13218630 property:P1001 ?x . ?x rdf:type ontology:Q15617994 }
United States representative
action filter_type
action find
entity United States representative
relation applies to jurisdiction
type designation for an administrative territorial entity
['United States representative', 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:United_States_representative property:applies_to_jurisdiction ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Clarification for simple ques.
Q21363942
SYSTEM
Did you mean member of the State Senate of Minnesota ?
Q13218630 Q17505193 Q21363942
(Q13218630,P1001,c(Q15617994)) (Q17505193,P1001,c(Q15617994)) (Q21363942,P1001,c(Q15617994))
[ANSWER]
['Q13218630', 'P1001', {'concept': 'Q15617994'}] ['Q17505193', 'P1001', {'concept': 'Q15617994'}] ['Q21363942', 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { resource:Q13218630 property:P1001 ?x . ?x rdf:type ontology:Q15617994 }
United States representative member of the Minnesota House of Representatives member of the State Senate of Minnesota
Did you mean member of the State Senate of Minnesota ?
member of the State Senate of Minnesota
['United States representative', 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}] ['member of the Minnesota House of Representatives', 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}] ['member of the State Senate of Minnesota', 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:United_States_representative property:applies_to_jurisdiction ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
USER
No, I meant United States representative. Could you tell me the answer for that?
(Q13218630,P1001,c(Q15617994))
Q13218630
['Q13218630', 'P1001', {'concept': 'Q15617994'}]
['United States representative', 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
[]
Q30
SYSTEM
United States of America
Q30
(Q13218630,P1001,c(Q15617994))
action filter_type
action find
entity Q13218630
relation P1001
type Q15617994
The [ANSWER] comes under the supervision of that occupation
['Q13218630', 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { resource:Q13218630 property:P1001 ?x . ?x rdf:type ontology:Q15617994 }
United States of America
The United States of America comes under the supervision of that occupation
United States of America
action filter_type
action find
entity United States representative
relation applies to jurisdiction
type designation for an administrative territorial entity
['United States representative', 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:United_States_representative property:applies_to_jurisdiction ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P921
Q12737077 Q732577 Q191067
USER
Which occupations were the main subjects of min number of publications or articles 's work ?
(c(Q732577)|c(Q191067),P921,c(Q12737077))
action argmin
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q732577
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q191067
[[{'concept': 'Q732577'}, {'concept': 'Q191067'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( MIN ( ?b ) AS ?y ) { SELECT DISTINCT ?c ( COUNT ( ?i ) AS ?b ) WHERE { VALUES ( ?n ) { ( ontology:Q732577 ) ( ontology:Q191067 ) } . ?i rdf:type ?n } GROUP BY ?c } } . { SELECT DISTINCT ?a ( COUNT ( ?k ) AS ?p ) WHERE { { ?k property:P921 ?a . ?k rdf:type ontology:Q732577 . ?a rdf:type ontology:Q12737077 } UNION { ?k property:P921 ?a . ?a rdf:type ontology:Q12737077 . ?k rdf:type ontology:Q191067 } } GROUP BY ?a } . FILTER ( ?p = ?y ) }
action argmin
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type publication
action find_reverse_tuple_counts
relation main subject
type occupation
type article
[[{'concept': 'publication'}, {'concept': 'article'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( MIN ( ?b ) AS ?y ) { SELECT DISTINCT ?c ( COUNT ( ?i ) AS ?b ) WHERE { VALUES ( ?n ) { ( ontology:publication ) ( ontology:article ) } . ?i rdf:type ?n } GROUP BY ?c } } . { SELECT DISTINCT ?a ( COUNT ( ?k ) AS ?p ) WHERE { { ?k property:main_subject ?a . ?k rdf:type ontology:publication . ?a rdf:type ontology:occupation } UNION { ?k property:main_subject ?a . ?a rdf:type ontology:occupation . ?k rdf:type ontology:article } } GROUP BY ?a } . FILTER ( ?p = ?y ) }
[]
occupation publication article
Q131512 Q42973 Q16707842
SYSTEM
farmer, architect, Member of Parliament in the United Kingdom
Q15637082 Q911554 Q9045502 Q2666591 Q39631 Q1124183 Q11631 Q5185440 Q765778 Q33999 Q36180 Q774306 Q3315094 Q83307 Q622807 Q4610556 Q18145518 Q7358 Q131512 Q1708232 Q82955 Q842782 Q730242 Q378622 Q42973 Q19627913 Q18534408 Q1930187 Q16267607 Q212238 Q6337803 Q202883 Q14948018 Q11642 Q20065408 Q937857 Q618536 Q9402 Q2961580 Q43845 Q14128148 Q814356 Q101539 Q168559 Q1058375 Q16556694 Q4991371 Q29182 Q486839 Q899758 Q131524 Q19185341 Q23810528 Q2306431 Q15958185 Q205375 Q164236 Q654291 Q14373094 Q483501 Q1114448 Q16533 Q18220900 Q936969 Q16746569 Q3658608 Q1028181 Q19204627 Q15987302 Q36834 Q133485 Q1477129 Q158852 Q16003605 Q245068 Q33231 Q838811 Q219477 Q1006696 Q639669 Q49757 Q17143199 Q384593 Q2095549 Q372436 Q1238570 Q2259532 Q1674312 Q361593 Q1856798 Q16003532 Q16707842
(c(Q732577)|c(Q191067),P921,c(Q12737077))
action argmin
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q732577
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q191067
[ANSWERS] were the main subjects of min number of publications or articles 's work
[[{'concept': 'Q732577'}, {'concept': 'Q191067'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( MIN ( ?b ) AS ?y ) { SELECT DISTINCT ?c ( COUNT ( ?i ) AS ?b ) WHERE { VALUES ( ?n ) { ( ontology:Q732577 ) ( ontology:Q191067 ) } . ?i rdf:type ?n } GROUP BY ?c } } . { SELECT DISTINCT ?a ( COUNT ( ?k ) AS ?p ) WHERE { { ?k property:P921 ?a . ?k rdf:type ontology:Q732577 . ?a rdf:type ontology:Q12737077 } UNION { ?k property:P921 ?a . ?a rdf:type ontology:Q12737077 . ?k rdf:type ontology:Q191067 } } GROUP BY ?a } . FILTER ( ?p = ?y ) }
industrialist business magnate member of the Parliament of Norway Chair of the Federal Reserve physician lumberjack astronaut Crime scene cleanup organist actor writer surgeon Prime Minister of Hungary minister seiyū model Member of the New Zealand House of Representatives clown farmer medallist politician detective test pilot racing driver architect Member of the Western Australian Legislative Council member of the Victorian Legislative Assembly journalist classical philologist civil servant neuroscientist veterinarian street musician pottery member of the Virginia House of Delegates association football player candidate ninja taxi driver businessperson gridiron football player call girl flight attendant political commissar double agent member of the Lok Sabha soldier bishop member of parliament violist entrepreneur Member of the Victorian Legislative Council ice cream taster White House Press Secretary racecar driver inventor war correspondent Deputy to the Dáil rugby league player artist cartoonist judge Member of the South Australian House of Assembly nanny high school student caricaturist painter American football player legal profession composer rabbi völva conductor elementary school student comedian photographer peasant missionary United States federal judge musician poet medical examiner police officer aviator statesman political scientist cleric rag-and-bone man police officer baseball umpire middle school student Member of Parliament in the United Kingdom
Farmer, architect and Member of Parliament in the United Kingdom were the main subjects of min number of publications or articles 's work
farmer architect Member of Parliament in the United Kingdom
action argmin
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type publication
action find_reverse_tuple_counts
relation main subject
type occupation
type article
[[{'concept': 'publication'}, {'concept': 'article'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( MIN ( ?b ) AS ?y ) { SELECT DISTINCT ?c ( COUNT ( ?i ) AS ?b ) WHERE { VALUES ( ?n ) { ( ontology:publication ) ( ontology:article ) } . ?i rdf:type ?n } GROUP BY ?c } } . { SELECT DISTINCT ?a ( COUNT ( ?k ) AS ?p ) WHERE { { ?k property:main_subject ?a . ?k rdf:type ontology:publication . ?a rdf:type ontology:occupation } UNION { ?k property:main_subject ?a . ?a rdf:type ontology:occupation . ?k rdf:type ontology:article } } GROUP BY ?a } . FILTER ( ?p = ?y ) }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P417
Q502895
USER
How many people are the patron saint of that occupation ?
(Q131512,P417,c(Q502895))
['Q131512', 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q131512 property:Q28914 ?z . ?z rdf:type ontology:Q502895 }
['farmer', 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:farmer property:patron_saint ?z . ?z rdf:type ontology:common_name }
[]
common name
Quantitative|Count|Single entity type|Clarification
Q131512
SYSTEM
Did you mean farmer ?
(Q131512,P417,c(Q502895)) (Q42973,P417,c(Q502895)) (Q16707842,P417,c(Q502895))
[ANSWER]
['Q131512', 'P417', {'concept': 'Q502895'}] ['Q42973', 'P417', {'concept': 'Q502895'}] ['Q16707842', 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q131512 property:Q28914 ?z . ?z rdf:type ontology:Q502895 }
Did you mean farmer ?
farmer
['farmer', 'patron saint', {'concept': 'common name'}] ['architect', 'patron saint', {'concept': 'common name'}] ['Member of Parliament in the United Kingdom', 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:farmer property:patron_saint ?z . ?z rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
USER
Yes
(Q131512,P417,c(Q502895))
['Q131512', 'P417', {'concept': 'Q502895'}]
['farmer', 'patron saint', {'concept': 'common name'}]
[]
SYSTEM
5
Q119289 Q166876 Q151967 Q44265 Q43982
(Q131512,P417,c(Q502895))
[ANSWER]
['Q131512', 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q131512 property:Q28914 ?z . ?z rdf:type ontology:Q502895 }
Leonard of Port Maurice Isidore of Seville Saint Blaise Benedict of Nursia Bartholomew the Apostle
5
['farmer', 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:farmer property:patron_saint ?z . ?z rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q30
P1071
Q11460
USER
Which clothing has United States of America as its final assembly location ?
(c(Q11460),P1071,Q30)
action filter_type
action find_reverse
entity Q30
relation P1071
type Q11460
[{'concept': 'Q11460'}, 'P1071', 'Q30']
SELECT DISTINCT ?c WHERE { ?c property:P1071 resource:Q30 . ?c rdf:type ontology:Q11460 }
United States of America
action filter_type
action find_reverse
entity United States of America
relation location of final assembly
type clothing
[{'concept': 'clothing'}, 'location of final assembly', 'United States of America']
SELECT DISTINCT ?c WHERE { ?c property:location_of_final_assembly resource:United_States_of_America . ?c rdf:type ontology:clothing }
[]
clothing
Q18600774
SYSTEM
Aida
Q18600774
(c(Q11460),P1071,Q30)
action filter_type
action find_reverse
entity Q30
relation P1071
type Q11460
[ANSWER] has United States of America as its final assembly location
[{'concept': 'Q11460'}, 'P1071', 'Q30']
SELECT DISTINCT ?c WHERE { ?c property:P1071 resource:Q30 . ?c rdf:type ontology:Q11460 }
Aida
Aida has United States of America as its final assembly location
Aida
action filter_type
action find_reverse
entity United States of America
relation location of final assembly
type clothing
[{'concept': 'clothing'}, 'location of final assembly', 'United States of America']
SELECT DISTINCT ?c WHERE { ?c property:location_of_final_assembly resource:United_States_of_America . ?c rdf:type ontology:clothing }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q30
P47
Q1048835
USER
Which political territories share border with United States of America ?
(c(Q1048835),P47,Q30)
action filter_type
action find
entity Q30
relation P47
type Q1048835
[{'concept': 'Q1048835'}, 'P47', 'Q30']
SELECT DISTINCT ?o WHERE { resource:Q30 property:P47 ?o . ?o rdf:type ontology:Q1048835 }
United States of America
action filter_type
action find
entity United States of America
relation shares border with
type political territorial entity
[{'concept': 'political territorial entity'}, 'shares border with', 'United States of America']
SELECT DISTINCT ?o WHERE { resource:United_States_of_America property:shares_border_with ?o . ?o rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q16 Q778
SYSTEM
Canada, The Bahamas
Q16 Q778
(c(Q1048835),P47,Q30)
action filter_type
action find
entity Q30
relation P47
type Q1048835
[ANSWERS] share border with United States of America
[{'concept': 'Q1048835'}, 'P47', 'Q30']
SELECT DISTINCT ?o WHERE { resource:Q30 property:P47 ?o . ?o rdf:type ontology:Q1048835 }
Canada The Bahamas
Canada and The Bahamas share border with United States of America
Canada The Bahamas
action filter_type
action find
entity United States of America
relation shares border with
type political territorial entity
[{'concept': 'political territorial entity'}, 'shares border with', 'United States of America']
SELECT DISTINCT ?o WHERE { resource:United_States_of_America property:shares_border_with ?o . ?o rdf:type ontology:political_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q16 Q778
P1001
Q4164871
USER
Which positions have jurisdiction over Canada and The Bahamas ?
(c(Q4164871),P1001,Q16) (c(Q4164871),P1001,Q778)
action union
action filter_type
action find_reverse
entity Q16
relation P1001
type Q4164871
action filter_type
action find_reverse
entity Q778
relation P1001
type Q4164871
[{'concept': 'Q4164871'}, 'P1001', 'Q16'] [{'concept': 'Q4164871'}, 'P1001', 'Q778']
SELECT DISTINCT ?x WHERE { VALUES ( ?t ) { ( resource:Q16 ) ( resource:Q778 ) } . ?x property:P1001 ?t }
Canada The Bahamas
action union
action filter_type
action find_reverse
entity Canada
relation applies to jurisdiction
type position
action filter_type
action find_reverse
entity The Bahamas
relation applies to jurisdiction
type position
[{'concept': 'position'}, 'applies to jurisdiction', 'Canada'] [{'concept': 'position'}, 'applies to jurisdiction', 'The Bahamas']
SELECT DISTINCT ?x WHERE { VALUES ( ?t ) { ( resource:Canada ) ( resource:The_Bahamas ) } . ?x property:applies_to_jurisdiction ?t }
[]
position
Q24190727 Q25917099
SYSTEM
Minister of Small Business and Tourism, Deputy Prime Minister
Q24190727 Q25917099
(c(Q4164871),P1001,Q16) (c(Q4164871),P1001,Q778)
action union
action filter_type
action find_reverse
entity Q16
relation P1001
type Q4164871
action filter_type
action find_reverse
entity Q778
relation P1001
type Q4164871
The [ANSWERS] have jurisdiction over Canada and The Bahamas
[{'concept': 'Q4164871'}, 'P1001', 'Q16'] [{'concept': 'Q4164871'}, 'P1001', 'Q778']
SELECT DISTINCT ?x WHERE { VALUES ( ?t ) { ( resource:Q16 ) ( resource:Q778 ) } . ?x property:P1001 ?t }
Minister of Small Business and Tourism Deputy Prime Minister
The Minister of Small Business and Tourism and Deputy Prime Minister have jurisdiction over Canada and The Bahamas
Minister of Small Business and Tourism Deputy Prime Minister
action union
action filter_type
action find_reverse
entity Canada
relation applies to jurisdiction
type position
action filter_type
action find_reverse
entity The Bahamas
relation applies to jurisdiction
type position
[{'concept': 'position'}, 'applies to jurisdiction', 'Canada'] [{'concept': 'position'}, 'applies to jurisdiction', 'The Bahamas']
SELECT DISTINCT ?x WHERE { VALUES ( ?t ) { ( resource:Canada ) ( resource:The_Bahamas ) } . ?x property:applies_to_jurisdiction ?t }
[]
Clarification
Simple Question|Single Entity|Indirect
Q16
P138
Q19832486
USER
Which locomotive class is the eponym of that political territory ?
(c(Q19832486),P138,Q16)
action filter_type
action find_reverse
entity Q16
relation P138
type Q19832486
[{'concept': 'Q19832486'}, 'P138', 'Q16']
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q19832486 . ?q property:P138 resource:Q16 }
Canada
action filter_type
action find_reverse
entity Canada
relation named after
type locomotive class
[{'concept': 'locomotive class'}, 'named after', 'Canada']
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:locomotive_class . ?q property:named_after resource:Canada }
[]
locomotive class
Clarification for simple ques.
Q16
SYSTEM
Did you mean Canada ?
Q24190727 Q25917099
(c(Q19832486),P138,Q24190727) (c(Q19832486),P138,Q25917099)
[ANSWER]
[{'concept': 'Q19832486'}, 'P138', 'Q24190727'] [{'concept': 'Q19832486'}, 'P138', 'Q25917099']
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q19832486 . ?q property:P138 resource:Q16 }
Minister of Small Business and Tourism Deputy Prime Minister
Did you mean Canada ?
Canada
[{'concept': 'locomotive class'}, 'named after', 'Minister of Small Business and Tourism'] [{'concept': 'locomotive class'}, 'named after', 'Deputy Prime Minister']
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:locomotive_class . ?q property:named_after resource:Canada }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q19832486),P138,Q16)
[{'concept': 'Q19832486'}, 'P138', 'Q16']
[{'concept': 'locomotive class'}, 'named after', 'Canada']
[]
Q6459253
SYSTEM
LNER Class A4 4489 Dominion of Canada
Q6459253
(c(Q19832486),P138,Q16)
action filter_type
action find_reverse
entity Q16
relation P138
type Q19832486
[ANSWER] is the eponym of that political territory
[{'concept': 'Q19832486'}, 'P138', 'Q16']
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q19832486 . ?q property:P138 resource:Q16 }
LNER Class A4 4489 Dominion of Canada
LNER Class A4 4489 Dominion of Canada is the eponym of that political territory
LNER Class A4 4489 Dominion of Canada
action filter_type
action find_reverse
entity Canada
relation named after
type locomotive class
[{'concept': 'locomotive class'}, 'named after', 'Canada']
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:locomotive_class . ?q property:named_after resource:Canada }
[]