Simple Question (Direct)
Simple Question
Q240448
P463
Q811430
USER
Which construction was Armen Alchian a member of ?
(Q240448,P463,c(Q811430))
action filter_type
action find
entity Q240448
relation P463
type Q811430
['Q240448', 'P463', {'concept': 'Q811430'}]
SELECT DISTINCT ?t WHERE { resource:Q240448 property:P463 ?t . ?t rdf:type ontology:Q811430 }
Armen Alchian
action filter_type
action find
entity Armen Alchian
relation member of
type construction
['Armen Alchian', 'member of', {'concept': 'construction'}]
SELECT DISTINCT ?t WHERE { resource:Armen_Alchian property:member_of ?t . ?t rdf:type ontology:construction }
[]
construction
Q463303
SYSTEM
American Academy of Arts and Sciences
Q463303
(Q240448,P463,c(Q811430))
action filter_type
action find
entity Q240448
relation P463
type Q811430
Armen Alchian was the [ANSWER]
['Q240448', 'P463', {'concept': 'Q811430'}]
SELECT DISTINCT ?t WHERE { resource:Q240448 property:P463 ?t . ?t rdf:type ontology:Q811430 }
American Academy of Arts and Sciences
Armen Alchian was the American Academy of Arts and Sciences
American Academy of Arts and Sciences
action filter_type
action find
entity Armen Alchian
relation member of
type construction
['Armen Alchian', 'member of', {'concept': 'construction'}]
SELECT DISTINCT ?t WHERE { resource:Armen_Alchian property:member_of ?t . ?t rdf:type ontology:construction }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q463303
P17
Q15617994
USER
Which administrative territory is that construction a part of ?
(Q463303,P17,c(Q15617994))
action filter_type
action find
entity Q463303
relation P17
type Q15617994
['Q463303', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { resource:Q463303 property:P17 ?v . ?v rdf:type ontology:Q15617994 }
American Academy of Arts and Sciences
action filter_type
action find
entity American Academy of Arts and Sciences
relation country
type designation for an administrative territorial entity
['American Academy of Arts and Sciences', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:American_Academy_of_Arts_and_Sciences property:country ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q463303,P17,c(Q15617994))
action filter_type
action find
entity Q463303
relation P17
type Q15617994
The [ANSWER] is that construction a part of
['Q463303', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { resource:Q463303 property:P17 ?v . ?v rdf:type ontology:Q15617994 }
United States of America
The United States of America is that construction a part of
United States of America
action filter_type
action find
entity American Academy of Arts and Sciences
relation country
type designation for an administrative territorial entity
['American Academy of Arts and Sciences', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:American_Academy_of_Arts_and_Sciences property:country ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q30
P6
Q502895
USER
Which people do that administrative territory serve as the head of government for ?
(Q30,P6,c(Q502895))
action filter_type
action find
entity Q30
relation P6
type Q502895
['Q30', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?d WHERE { resource:Q30 property:P6 ?d . ?d rdf:type ontology:Q502895 }
United States of America
action filter_type
action find
entity United States of America
relation head of government
type common name
['United States of America', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?d WHERE { resource:United_States_of_America property:head_of_government ?d . ?d rdf:type ontology:common_name }
[]
common name
Q76 Q9916 Q22686
SYSTEM
Barack Obama, Dwight D. Eisenhower, Donald Trump
Q35171 Q11815 Q11816 Q11817 Q35498 Q11812 Q12306 Q35236 Q12325 Q33866 Q35648 Q9588 Q9582 Q35041 Q207 Q11813 Q91 Q23685 Q9696 Q22686 Q34597 Q36023 Q11881 Q9916 Q12312 Q11806 Q35286 Q9640 Q35686 Q11820 Q35678 Q11869 Q34296 Q76 Q8612 Q34836 Q23505 Q23 Q1124 Q11613 Q11896 Q8007 Q9960 Q11891
(Q30,P6,c(Q502895))
action filter_type
action find
entity Q30
relation P6
type Q502895
That administrative territory serve as the head of government for President [ANSWERS]
['Q30', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?d WHERE { resource:Q30 property:P6 ?d . ?d rdf:type ontology:Q502895 }
Grover Cleveland James Monroe John Quincy Adams Andrew Jackson Chester A. Arthur Thomas Jefferson Millard Fillmore Herbert Hoover James Buchanan Theodore Roosevelt William Howard Taft Richard Nixon Gerald Ford William McKinley George W. Bush James Madison Abraham Lincoln Jimmy Carter John F. Kennedy Donald Trump James A. Garfield Calvin Coolidge John Tyler Dwight D. Eisenhower Franklin Pierce John Adams Warren G. Harding Lyndon B. Johnson Rutherford B. Hayes Martin Van Buren Benjamin Harrison William Henry Harrison Woodrow Wilson Barack Obama Andrew Johnson Ulysses S. Grant George H. W. Bush George Washington Bill Clinton Harry S. Truman Zachary Taylor Franklin Delano Roosevelt Ronald Reagan James K. Polk
That administrative territory serve as the head of government for President Barack Obama, Dwight D. Eisenhower and Donald Trump
Barack Obama Dwight D. Eisenhower Donald Trump
action filter_type
action find
entity United States of America
relation head of government
type common name
['United States of America', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?d WHERE { resource:United_States_of_America property:head_of_government ?d . ?d rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q22686
P22
Q502895
USER
Who have that one as a father ?
(c(Q502895),P22,Q22686)
action filter_type
action find_reverse
entity Q22686
relation P22
type Q502895
[{'concept': 'Q502895'}, 'P22', 'Q22686']
SELECT DISTINCT ?w WHERE { ?w property:P22 resource:Q22686 . ?w rdf:type ontology:Q502895 }
Donald Trump
action filter_type
action find_reverse
entity Donald Trump
relation father
type common name
[{'concept': 'common name'}, 'father', 'Donald Trump']
SELECT DISTINCT ?w WHERE { ?w property:father resource:Donald_Trump . ?w rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q9916
SYSTEM
Did you mean Dwight D. Eisenhower ?
Q76 Q9916 Q22686
(c(Q502895),P22,Q76) (c(Q502895),P22,Q9916) (c(Q502895),P22,Q22686)
[ANSWER]
[{'concept': 'Q502895'}, 'P22', 'Q76'] [{'concept': 'Q502895'}, 'P22', 'Q9916'] [{'concept': 'Q502895'}, 'P22', 'Q22686']
SELECT DISTINCT ?w WHERE { ?w property:P22 resource:Q22686 . ?w rdf:type ontology:Q502895 }
Barack Obama Dwight D. Eisenhower Donald Trump
Did you mean Dwight D. Eisenhower ?
Dwight D. Eisenhower
[{'concept': 'common name'}, 'father', 'Barack Obama'] [{'concept': 'common name'}, 'father', 'Dwight D. Eisenhower'] [{'concept': 'common name'}, 'father', 'Donald Trump']
SELECT DISTINCT ?w WHERE { ?w property:father resource:Donald_Trump . ?w rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant Donald Trump. Could you tell me the answer for that?
(c(Q502895),P22,Q22686)
Q22686
[{'concept': 'Q502895'}, 'P22', 'Q22686']
[{'concept': 'common name'}, 'father', 'Donald Trump']
[]
Q3713655 Q239411 Q12071552
SYSTEM
Donald Trump Jr., Ivanka Yael Trump, Tiffany Trump
Q3713655 Q239411 Q12071552 Q3731533 Q23000814
(c(Q502895),P22,Q22686)
action filter_type
action find_reverse
entity Q22686
relation P22
type Q502895
[ANSWERS] have that one as a father
[{'concept': 'Q502895'}, 'P22', 'Q22686']
SELECT DISTINCT ?w WHERE { ?w property:P22 resource:Q22686 . ?w rdf:type ontology:Q502895 }
Donald Trump Jr. Ivanka Yael Trump Tiffany Trump Eric Trump Barron Trump
Donald Trump Jr., Ivanka Yael Trump and Tiffany Trump have that one as a father
Donald Trump Jr. Ivanka Yael Trump Tiffany Trump
action filter_type
action find_reverse
entity Donald Trump
relation father
type common name
[{'concept': 'common name'}, 'father', 'Donald Trump']
SELECT DISTINCT ?w WHERE { ?w property:father resource:Donald_Trump . ?w rdf:type ontology:common_name }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q379248
P1303
Q34379 Q502895
USER
How many musical instruments can greater number of people perform with than Timbales ?
(c(Q502895),P1303,c(Q34379))
action count
action greater
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q379248
relation P1303
type Q34379
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?d ) WHERE { { SELECT DISTINCT ?l ( COUNT ( ?m ) AS ?w ) WHERE { ?m property:P1303 ?l . ?l rdf:type ontology:Q34379 . ?m rdf:type ontology:Q502895 } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?n ) WHERE { resource:Q379248 property:P1303 ?t . ?t rdf:type ontology:Q34379 } } . FILTER ( ?w > ?n ) }
Timbales
action count
action greater
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity Timbales
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?d ) WHERE { { SELECT DISTINCT ?l ( COUNT ( ?m ) AS ?w ) WHERE { ?m property:instrument ?l . ?l rdf:type ontology:musical_instrument . ?m rdf:type ontology:common_name } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?n ) WHERE { resource:Timbales property:instrument ?t . ?t rdf:type ontology:musical_instrument } } . FILTER ( ?w > ?n ) }
[]
musical instrument common name
SYSTEM
30
Q80284 Q46185 Q201129 Q424017 Q80019 Q2563510 Q5994 Q3574843 Q81982 Q182718 Q206987 Q189737 Q8338 Q8371 Q8355 Q213461 Q3382191 Q862501 Q213100 Q537750 Q626035 Q742180 Q1300012 Q1444 Q220971 Q128309 Q726306 Q483994 Q1343007 Q11404
(c(Q502895),P1303,c(Q34379))
action count
action greater
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q379248
relation P1303
type Q34379
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?d ) WHERE { { SELECT DISTINCT ?l ( COUNT ( ?m ) AS ?w ) WHERE { ?m property:P1303 ?l . ?l rdf:type ontology:Q34379 . ?m rdf:type ontology:Q502895 } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?n ) WHERE { resource:Q379248 property:P1303 ?t . ?t rdf:type ontology:Q34379 } } . FILTER ( ?w > ?n ) }
viola bass guitar lyre acoustic bass guitar double bass steel-string acoustic guitar piano tonbak harpsichord Nyckelharpa vibraphone timpani trumpet cello violin harmonium upright piano ondes Martenot tabla Djembe glockenspiel viola d'amore toy piano organ marimba drum kit erhu Kazoo electronic keyboard drum
30
action count
action greater
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity Timbales
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?d ) WHERE { { SELECT DISTINCT ?l ( COUNT ( ?m ) AS ?w ) WHERE { ?m property:instrument ?l . ?l rdf:type ontology:musical_instrument . ?m rdf:type ontology:common_name } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?n ) WHERE { resource:Timbales property:instrument ?t . ?t rdf:type ontology:musical_instrument } } . FILTER ( ?w > ?n ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q1129422
P1303
Q34379 Q502895
USER
And how about morin khuur?
(c(Q502895),P1303,c(Q34379))
action count
action greater
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q1129422
relation P1303
type Q34379
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?b ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?k ) AS ?e ) WHERE { ?k property:P1303 ?g . ?g rdf:type ontology:Q34379 . ?k rdf:type ontology:Q502895 } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?t ) WHERE { ?w rdf:type ontology:Q34379 . resource:Q1129422 property:P1303 ?w } } . FILTER ( ?e > ?t ) }
morin khuur
action count
action greater
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity morin khuur
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?b ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?k ) AS ?e ) WHERE { ?k property:instrument ?g . ?g rdf:type ontology:musical_instrument . ?k rdf:type ontology:common_name } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?t ) WHERE { ?w rdf:type ontology:musical_instrument . resource:morin_khuur property:instrument ?w } } . FILTER ( ?e > ?t ) }
[]
musical instrument common name
SYSTEM
30
Q80284 Q46185 Q201129 Q424017 Q80019 Q2563510 Q5994 Q3574843 Q81982 Q182718 Q206987 Q189737 Q8338 Q8371 Q8355 Q213461 Q3382191 Q862501 Q213100 Q537750 Q626035 Q742180 Q1300012 Q1444 Q220971 Q128309 Q726306 Q483994 Q1343007 Q11404
(c(Q502895),P1303,c(Q34379))
action count
action greater
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q1129422
relation P1303
type Q34379
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?b ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?k ) AS ?e ) WHERE { ?k property:P1303 ?g . ?g rdf:type ontology:Q34379 . ?k rdf:type ontology:Q502895 } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?t ) WHERE { ?w rdf:type ontology:Q34379 . resource:Q1129422 property:P1303 ?w } } . FILTER ( ?e > ?t ) }
viola bass guitar lyre acoustic bass guitar double bass steel-string acoustic guitar piano tonbak harpsichord Nyckelharpa vibraphone timpani trumpet cello violin harmonium upright piano ondes Martenot tabla Djembe glockenspiel viola d'amore toy piano organ marimba drum kit erhu Kazoo electronic keyboard drum
30
action count
action greater
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity morin khuur
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?b ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?k ) AS ?e ) WHERE { ?k property:instrument ?g . ?g rdf:type ontology:musical_instrument . ?k rdf:type ontology:common_name } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?t ) WHERE { ?w rdf:type ontology:musical_instrument . resource:morin_khuur property:instrument ?w } } . FILTER ( ?e > ?t ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q116927 Q22686
P26
Q502895
USER
Which people are the spouse of Donald Trump or Philipp Hildebrand ?
OR((c(Q502895),P26,Q22686), (c(Q502895),P26,Q116927))
action filter_type
action union
action find_reverse
entity Q22686
relation P26
action find_reverse
entity Q116927
relation P26
type Q502895
{'OR': [[{'concept': 'Q502895'}, 'P26', 'Q22686'], [{'concept': 'Q502895'}, 'P26', 'Q116927']]}
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q502895 . { ?m property:P26 ?q . VALUES ( ?q ) { ( resource:Q116927 ) ( resource:Q22686 ) } } }
Philipp Hildebrand Donald Trump
action filter_type
action union
action find_reverse
entity Donald Trump
relation spouse
action find_reverse
entity Philipp Hildebrand
relation spouse
type common name
{'OR': [[{'concept': 'common name'}, 'spouse', 'Donald Trump'], [{'concept': 'common name'}, 'spouse', 'Philipp Hildebrand']]}
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:common_name . { ?m property:spouse ?q . VALUES ( ?q ) { ( resource:Philipp_Hildebrand ) ( resource:Donald_Trump ) } } }
[]
common name
Q2597050 Q242351 Q432473 Q654978
SYSTEM
Marla Maples, Ivana Trump, Melania Trump, Margarita Louis-Dreyfus
Q2597050 Q242351 Q432473 Q654978
OR((c(Q502895),P26,Q22686), (c(Q502895),P26,Q116927))
action filter_type
action union
action find_reverse
entity Q22686
relation P26
action find_reverse
entity Q116927
relation P26
type Q502895
[ANSWERS] are the spouse of Donald Trump or Philipp Hildebrand
{'OR': [[{'concept': 'Q502895'}, 'P26', 'Q22686'], [{'concept': 'Q502895'}, 'P26', 'Q116927']]}
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q502895 . { ?m property:P26 ?q . VALUES ( ?q ) { ( resource:Q116927 ) ( resource:Q22686 ) } } }
Marla Maples Ivana Trump Melania Trump Margarita Louis-Dreyfus
Marla Maples, Ivana Trump, Melania Trump and Margarita Louis-Dreyfus are the spouse of Donald Trump or Philipp Hildebrand
Marla Maples Ivana Trump Melania Trump Margarita Louis-Dreyfus
action filter_type
action union
action find_reverse
entity Donald Trump
relation spouse
action find_reverse
entity Philipp Hildebrand
relation spouse
type common name
{'OR': [[{'concept': 'common name'}, 'spouse', 'Donald Trump'], [{'concept': 'common name'}, 'spouse', 'Philipp Hildebrand']]}
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:common_name . { ?m property:spouse ?q . VALUES ( ?q ) { ( resource:Philipp_Hildebrand ) ( resource:Donald_Trump ) } } }
[]