Simple Question (Direct)
Simple Question
Q4933157
P69
Q163740
USER
Which nonprofit organization was Bob Lewis educated at ?
(Q4933157,P69,c(Q163740))
action filter_type
action find
entity Q4933157
relation P69
type Q163740
['Q4933157', 'P69', {'concept': 'Q163740'}]
SELECT DISTINCT ?n WHERE { resource:Q4933157 property:P69 ?n . ?n rdf:type ontology:Q163740 }
Bob Lewis
action filter_type
action find
entity Bob Lewis
relation educated at
type nonprofit organization
['Bob Lewis', 'educated at', {'concept': 'nonprofit organization'}]
SELECT DISTINCT ?n WHERE { resource:Bob_Lewis property:educated_at ?n . ?n rdf:type ontology:nonprofit_organization }
[]
nonprofit organization
Q41506
SYSTEM
Stanford University
Q41506
(Q4933157,P69,c(Q163740))
action filter_type
action find
entity Q4933157
relation P69
type Q163740
Bob Lewis was educated at [ANSWER]
['Q4933157', 'P69', {'concept': 'Q163740'}]
SELECT DISTINCT ?n WHERE { resource:Q4933157 property:P69 ?n . ?n rdf:type ontology:Q163740 }
Stanford University
Bob Lewis was educated at Stanford University
Stanford University
action filter_type
action find
entity Bob Lewis
relation educated at
type nonprofit organization
['Bob Lewis', 'educated at', {'concept': 'nonprofit organization'}]
SELECT DISTINCT ?n WHERE { resource:Bob_Lewis property:educated_at ?n . ?n rdf:type ontology:nonprofit_organization }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q4933157
P106
Q12737077
USER
What is the job of Bob Lewis ?
(Q4933157,P106,c(Q12737077))
action filter_type
action find
entity Q4933157
relation P106
type Q12737077
['Q4933157', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?f WHERE { resource:Q4933157 property:P106 ?f . ?f rdf:type ontology:Q12737077 }
Bob Lewis
action filter_type
action find
entity Bob Lewis
relation occupation
type occupation
['Bob Lewis', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?f WHERE { resource:Bob_Lewis property:occupation ?f . ?f rdf:type ontology:occupation }
[]
occupation
Q3665646
SYSTEM
basketball player
Q3665646
(Q4933157,P106,c(Q12737077))
action filter_type
action find
entity Q4933157
relation P106
type Q12737077
The job of Bob Lewis is a [ANSWER]
['Q4933157', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?f WHERE { resource:Q4933157 property:P106 ?f . ?f rdf:type ontology:Q12737077 }
basketball player
The job of Bob Lewis is a basketball player
basketball player
action filter_type
action find
entity Bob Lewis
relation occupation
type occupation
['Bob Lewis', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?f WHERE { resource:Bob_Lewis property:occupation ?f . ?f rdf:type ontology:occupation }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q3665646 Q13393265 Q16671994
P361
Q618123
USER
Is that occupation a part of basketball team and Racers Track Club ?
(Q3665646,P361,Q13393265) (Q3665646,P361,Q16671994)
action is_in
entity Q3665646
action intersection
action find_reverse
entity Q13393265
relation P361
action find_reverse
entity Q16671994
relation P361
['Q3665646', 'P361', 'Q13393265'] ['Q3665646', 'P361', 'Q16671994']
ASK WHERE { resource:Q3665646 property:P361 resource:Q13393265 . resource:Q3665646 property:P361 resource:Q16671994 }
basketball player basketball team Racers Track Club
action is_in
entity basketball player
action intersection
action find_reverse
entity basketball team
relation part of
action find_reverse
entity Racers Track Club
relation part of
['basketball player', 'part of', 'basketball team'] ['basketball player', 'part of', 'Racers Track Club']
ASK WHERE { resource:basketball_player property:part_of resource:basketball_team . resource:basketball_player property:part_of resource:Racers_Track_Club }
[]
geographical object
SYSTEM
YES and NO respectively
(Q3665646,P361,Q13393265) (Q3665646,P361,Q16671994)
action is_in
entity Q3665646
action intersection
action find_reverse
entity Q13393265
relation P361
action find_reverse
entity Q16671994
relation P361
[ANSWER]
['Q3665646', 'P361', 'Q13393265'] ['Q3665646', 'P361', 'Q16671994']
ASK WHERE { resource:Q3665646 property:P361 resource:Q13393265 . resource:Q3665646 property:P361 resource:Q16671994 }
YES and NO respectively
action is_in
entity basketball player
action intersection
action find_reverse
entity basketball team
relation part of
action find_reverse
entity Racers Track Club
relation part of
['basketball player', 'part of', 'basketball team'] ['basketball player', 'part of', 'Racers Track Club']
ASK WHERE { resource:basketball_player property:part_of resource:basketball_team . resource:basketball_player property:part_of resource:Racers_Track_Club }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q41506 Q61698 Q30
P17
Q15617994
USER
Is Stanford University present in Büsingen and United States of America ?
(Q41506,P17,Q61698) (Q41506,P17,Q30)
action is_in
entity Q41506
action intersection
action find_reverse
entity Q61698
relation P17
action find_reverse
entity Q30
relation P17
['Q41506', 'P17', 'Q61698'] ['Q41506', 'P17', 'Q30']
ASK WHERE { resource:Q41506 property:P17 resource:Q30 . resource:Q41506 property:P17 resource:Q61698 }
Stanford University Büsingen United States of America
action is_in
entity Stanford University
action intersection
action find_reverse
entity Büsingen
relation country
action find_reverse
entity United States of America
relation country
['Stanford University', 'country', 'Büsingen'] ['Stanford University', 'country', 'United States of America']
ASK WHERE { resource:Stanford_University property:country resource:United_States_of_America . resource:Stanford_University property:country resource:Büsingen }
[]
designation for an administrative territorial entity
SYSTEM
NO and YES respectively
(Q41506,P17,Q61698) (Q41506,P17,Q30)
action is_in
entity Q41506
action intersection
action find_reverse
entity Q61698
relation P17
action find_reverse
entity Q30
relation P17
[ANSWER]
['Q41506', 'P17', 'Q61698'] ['Q41506', 'P17', 'Q30']
ASK WHERE { resource:Q41506 property:P17 resource:Q30 . resource:Q41506 property:P17 resource:Q61698 }
NO and YES respectively
action is_in
entity Stanford University
action intersection
action find_reverse
entity Büsingen
relation country
action find_reverse
entity United States of America
relation country
['Stanford University', 'country', 'Büsingen'] ['Stanford University', 'country', 'United States of America']
ASK WHERE { resource:Stanford_University property:country resource:United_States_of_America . resource:Stanford_University property:country resource:Büsingen }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q25906395 Q30
P170 P6
Q502895
USER
Which people do United States of America serve as the head of government for or are the creaters of Castle Square, Carnarvon ?
OR((Q30,P6,c(Q502895)), (Q25906395,P170,c(Q502895)))
action filter_type
action union
action find
entity Q30
relation P6
action find
entity Q25906395
relation P170
type Q502895
{'OR': [['Q30', 'P6', {'concept': 'Q502895'}], ['Q25906395', 'P170', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?d WHERE { { { resource:Q25906395 property:P170 ?d } UNION { resource:Q30 property:P6 ?d } } . ?d rdf:type ontology:Q502895 }
Castle Square, Carnarvon United States of America
action filter_type
action union
action find
entity United States of America
relation head of government
action find
entity Castle Square, Carnarvon
relation creator
type common name
{'OR': [['United States of America', 'head of government', {'concept': 'common name'}], ['Castle Square, Carnarvon', 'creator', {'concept': 'common name'}]]}
SELECT DISTINCT ?d WHERE { { { resource:Castle_Square,_Carnarvon property:creator ?d } UNION { resource:United_States_of_America property:head_of_government ?d } } . ?d rdf:type ontology:common_name }
[]
common name
Q35171 Q91 Q9640 Q9960 Q35678 Q11820 Q9916 Q9696 Q12312 Q11613
SYSTEM
Some of them are Grover Cleveland, Abraham Lincoln, Lyndon B. Johnson, Ronald Reagan, Benjamin Harrison, Martin Van Buren, Dwight D. Eisenhower, John F. Kennedy, Franklin Pierce, Harry S. Truman
Q35171 Q11815 Q11816 Q11817 Q9588 Q11812 Q12306 Q91 Q12325 Q33866 Q35648 Q35498 Q9582 Q11869 Q207 Q11813 Q35236 Q23685 Q9696 Q22686 Q34597 Q36023 Q11881 Q9916 Q12312 Q11806 Q35286 Q9640 Q35686 Q11820 Q35678 Q27050403 Q35041 Q34296 Q76 Q8612 Q34836 Q23505 Q23 Q1124 Q11613 Q11896 Q8007 Q9960 Q11891
OR((Q30,P6,c(Q502895)), (Q25906395,P170,c(Q502895)))
action filter_type
action union
action find
entity Q30
relation P6
action find
entity Q25906395
relation P170
type Q502895
Or are the creaters of Castle Square , Carnarvon as the head of government for President [ANSWERS] United States of America serve
{'OR': [['Q30', 'P6', {'concept': 'Q502895'}], ['Q25906395', 'P170', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?d WHERE { { { resource:Q25906395 property:P170 ?d } UNION { resource:Q30 property:P6 ?d } } . ?d rdf:type ontology:Q502895 }
Grover Cleveland James Monroe John Quincy Adams Andrew Jackson Richard Nixon Thomas Jefferson Millard Fillmore Abraham Lincoln James Buchanan Theodore Roosevelt William Howard Taft Chester A. Arthur Gerald Ford William Henry Harrison George W. Bush James Madison Herbert Hoover 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 Wood William McKinley 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
Or are the creaters of Castle Square , Carnarvon as the head of government for President Grover Cleveland, Abraham Lincoln, Lyndon B. Johnson, Ronald Reagan, Benjamin Harrison, Martin Van Buren, Dwight D. Eisenhower, John F. Kennedy, Franklin Pierce and Harry S. Truman United States of America serve
Grover Cleveland Abraham Lincoln Lyndon B. Johnson Ronald Reagan Benjamin Harrison Martin Van Buren Dwight D. Eisenhower John F. Kennedy Franklin Pierce Harry S. Truman
action filter_type
action union
action find
entity United States of America
relation head of government
action find
entity Castle Square, Carnarvon
relation creator
type common name
{'OR': [['United States of America', 'head of government', {'concept': 'common name'}], ['Castle Square, Carnarvon', 'creator', {'concept': 'common name'}]]}
SELECT DISTINCT ?d WHERE { { { resource:Castle_Square,_Carnarvon property:creator ?d } UNION { resource:United_States_of_America property:head_of_government ?d } } . ?d rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q481926
P6
Q15617994
USER
Do Vita, Sicily have their government headed by those people ?
(Q481926,P6,Q35171) (Q481926,P6,Q91) (Q481926,P6,Q9640) (Q481926,P6,Q9960) (Q481926,P6,Q35678) (Q481926,P6,Q11820) (Q481926,P6,Q9916) (Q481926,P6,Q9696) (Q481926,P6,Q12312) (Q481926,P6,Q11613)
action is_in
entity prev_answer
action find
entity Q481926
relation P6
['Q481926', 'P6', 'Q35171'] ['Q481926', 'P6', 'Q91'] ['Q481926', 'P6', 'Q9640'] ['Q481926', 'P6', 'Q9960'] ['Q481926', 'P6', 'Q35678'] ['Q481926', 'P6', 'Q11820'] ['Q481926', 'P6', 'Q9916'] ['Q481926', 'P6', 'Q9696'] ['Q481926', 'P6', 'Q12312'] ['Q481926', 'P6', 'Q11613']
ASK WHERE { VALUES ( ?z ) { ( resource:Q35171 ) ( resource:Q11815 ) ( resource:Q11816 ) } . resource:Q481926 property:P6 ?z }
Vita, Sicily
action is_in
entity prev_answer
action find
entity Vita, Sicily
relation head of government
['Vita, Sicily', 'head of government', 'Grover Cleveland'] ['Vita, Sicily', 'head of government', 'Abraham Lincoln'] ['Vita, Sicily', 'head of government', 'Lyndon B. Johnson'] ['Vita, Sicily', 'head of government', 'Ronald Reagan'] ['Vita, Sicily', 'head of government', 'Benjamin Harrison'] ['Vita, Sicily', 'head of government', 'Martin Van Buren'] ['Vita, Sicily', 'head of government', 'Dwight D. Eisenhower'] ['Vita, Sicily', 'head of government', 'John F. Kennedy'] ['Vita, Sicily', 'head of government', 'Franklin Pierce'] ['Vita, Sicily', 'head of government', 'Harry S. Truman']
ASK WHERE { VALUES ( ?z ) { ( resource:Grover_Cleveland ) ( resource:James_Monroe ) ( resource:John_Quincy_Adams ) } . resource:Vita,_Sicily property:head_of_government ?z }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q481926,P6,Q35171) (Q481926,P6,Q91) (Q481926,P6,Q9640) (Q481926,P6,Q9960) (Q481926,P6,Q35678) (Q481926,P6,Q11820) (Q481926,P6,Q9916) (Q481926,P6,Q9696) (Q481926,P6,Q12312) (Q481926,P6,Q11613)
action is_in
entity prev_answer
action find
entity Q481926
relation P6
[ANSWER]
['Q481926', 'P6', 'Q35171'] ['Q481926', 'P6', 'Q91'] ['Q481926', 'P6', 'Q9640'] ['Q481926', 'P6', 'Q9960'] ['Q481926', 'P6', 'Q35678'] ['Q481926', 'P6', 'Q11820'] ['Q481926', 'P6', 'Q9916'] ['Q481926', 'P6', 'Q9696'] ['Q481926', 'P6', 'Q12312'] ['Q481926', 'P6', 'Q11613']
ASK WHERE { VALUES ( ?z ) { ( resource:Q35171 ) ( resource:Q11815 ) ( resource:Q11816 ) } . resource:Q481926 property:P6 ?z }
No
action is_in
entity prev_answer
action find
entity Vita, Sicily
relation head of government
['Vita, Sicily', 'head of government', 'Grover Cleveland'] ['Vita, Sicily', 'head of government', 'Abraham Lincoln'] ['Vita, Sicily', 'head of government', 'Lyndon B. Johnson'] ['Vita, Sicily', 'head of government', 'Ronald Reagan'] ['Vita, Sicily', 'head of government', 'Benjamin Harrison'] ['Vita, Sicily', 'head of government', 'Martin Van Buren'] ['Vita, Sicily', 'head of government', 'Dwight D. Eisenhower'] ['Vita, Sicily', 'head of government', 'John F. Kennedy'] ['Vita, Sicily', 'head of government', 'Franklin Pierce'] ['Vita, Sicily', 'head of government', 'Harry S. Truman']
ASK WHERE { VALUES ( ?z ) { ( resource:Grover_Cleveland ) ( resource:James_Monroe ) ( resource:John_Quincy_Adams ) } . resource:Vita,_Sicily property:head_of_government ?z }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q35171 Q1860
P103
Q34770
USER
Is English the mother tongue of Grover Cleveland ?
(Q35171,P103,Q1860)
action is_in
entity Q1860
action find
entity Q35171
relation P103
['Q35171', 'P103', 'Q1860']
ASK WHERE { resource:Q35171 property:P103 resource:Q1860 }
Grover Cleveland English
action is_in
entity English
action find
entity Grover Cleveland
relation native language
['Grover Cleveland', 'native language', 'English']
ASK WHERE { resource:Grover_Cleveland property:native_language resource:English }
[]
language
SYSTEM
YES
(Q35171,P103,Q1860)
action is_in
entity Q1860
action find
entity Q35171
relation P103
[ANSWER]
['Q35171', 'P103', 'Q1860']
ASK WHERE { resource:Q35171 property:P103 resource:Q1860 }
Yes
action is_in
entity English
action find
entity Grover Cleveland
relation native language
['Grover Cleveland', 'native language', 'English']
ASK WHERE { resource:Grover_Cleveland property:native_language resource:English }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q9640 Q12152
P509
Q2057971
USER
Was myocardial infarction the cause of death of Lyndon B. Johnson ?
(Q9640,P509,Q12152)
action is_in
entity Q12152
action find
entity Q9640
relation P509
['Q9640', 'P509', 'Q12152']
ASK WHERE { resource:Q9640 property:P509 resource:Q12152 }
Lyndon B. Johnson myocardial infarction
action is_in
entity myocardial infarction
action find
entity Lyndon B. Johnson
relation cause of death
['Lyndon B. Johnson', 'cause of death', 'myocardial infarction']
ASK WHERE { resource:Lyndon_B._Johnson property:cause_of_death resource:myocardial_infarction }
[]
health problem
SYSTEM
YES
(Q9640,P509,Q12152)
action is_in
entity Q12152
action find
entity Q9640
relation P509
[ANSWER]
['Q9640', 'P509', 'Q12152']
ASK WHERE { resource:Q9640 property:P509 resource:Q12152 }
Yes
action is_in
entity myocardial infarction
action find
entity Lyndon B. Johnson
relation cause of death
['Lyndon B. Johnson', 'cause of death', 'myocardial infarction']
ASK WHERE { resource:Lyndon_B._Johnson property:cause_of_death resource:myocardial_infarction }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q11820 Q30 Q5024259
P27
Q15617994
USER
Is Martin Van Buren a native of United States of America and Calvert Independent School District ?
(Q11820,P27,Q30) (Q11820,P27,Q5024259)
action is_in
entity Q11820
action intersection
action find_reverse
entity Q30
relation P27
action find_reverse
entity Q5024259
relation P27
['Q11820', 'P27', 'Q30'] ['Q11820', 'P27', 'Q5024259']
ASK WHERE { resource:Q11820 property:P27 resource:Q30 . resource:Q11820 property:P27 resource:Q5024259 }
Martin Van Buren United States of America Calvert Independent School District
action is_in
entity Martin Van Buren
action intersection
action find_reverse
entity United States of America
relation country of citizenship
action find_reverse
entity Calvert Independent School District
relation country of citizenship
['Martin Van Buren', 'country of citizenship', 'United States of America'] ['Martin Van Buren', 'country of citizenship', 'Calvert Independent School District']
ASK WHERE { resource:Martin_Van_Buren property:country_of_citizenship resource:United_States_of_America . resource:Martin_Van_Buren property:country_of_citizenship resource:Calvert_Independent_School_District }
[]
designation for an administrative territorial entity
SYSTEM
YES and NO respectively
(Q11820,P27,Q30) (Q11820,P27,Q5024259)
action is_in
entity Q11820
action intersection
action find_reverse
entity Q30
relation P27
action find_reverse
entity Q5024259
relation P27
[ANSWER]
['Q11820', 'P27', 'Q30'] ['Q11820', 'P27', 'Q5024259']
ASK WHERE { resource:Q11820 property:P27 resource:Q30 . resource:Q11820 property:P27 resource:Q5024259 }
YES and NO respectively
action is_in
entity Martin Van Buren
action intersection
action find_reverse
entity United States of America
relation country of citizenship
action find_reverse
entity Calvert Independent School District
relation country of citizenship
['Martin Van Buren', 'country of citizenship', 'United States of America'] ['Martin Van Buren', 'country of citizenship', 'Calvert Independent School District']
ASK WHERE { resource:Martin_Van_Buren property:country_of_citizenship resource:United_States_of_America . resource:Martin_Van_Buren property:country_of_citizenship resource:Calvert_Independent_School_District }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q2563510
P1303
Q34379 Q502895
USER
Which musical instruments are played by greater number of people than steel-string acoustic guitar ?
(c(Q502895),P1303,c(Q34379))
action greater
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q2563510
relation P1303
type Q34379
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?r ) WHERE { resource:Q2563510 property:P1303 ?f . ?f rdf:type ontology:Q34379 } } . FILTER ( ?v > ?r ) . { SELECT DISTINCT ?u ( COUNT ( ?g ) AS ?v ) WHERE { ?g property:P1303 ?u . ?u rdf:type ontology:Q34379 . ?g rdf:type ontology:Q502895 } GROUP BY ?u } }
steel-string acoustic guitar
action greater
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity steel-string acoustic guitar
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?r ) WHERE { resource:steel-string_acoustic_guitar property:instrument ?f . ?f rdf:type ontology:musical_instrument } } . FILTER ( ?v > ?r ) . { SELECT DISTINCT ?u ( COUNT ( ?g ) AS ?v ) WHERE { ?g property:instrument ?u . ?u rdf:type ontology:musical_instrument . ?g rdf:type ontology:common_name } GROUP BY ?u } }
[]
musical instrument common name
Q5994 Q81982 Q80284
SYSTEM
piano, harpsichord, viola
Q80284 Q46185 Q80019 Q5994 Q81982 Q206987 Q8338 Q8371 Q8355 Q3382191 Q742180 Q1444 Q220971 Q128309 Q1343007 Q11404
(c(Q502895),P1303,c(Q34379))
action greater
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q2563510
relation P1303
type Q34379
[ANSWERS] are played by greater number of people than steel-string acoustic guitar
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?r ) WHERE { resource:Q2563510 property:P1303 ?f . ?f rdf:type ontology:Q34379 } } . FILTER ( ?v > ?r ) . { SELECT DISTINCT ?u ( COUNT ( ?g ) AS ?v ) WHERE { ?g property:P1303 ?u . ?u rdf:type ontology:Q34379 . ?g rdf:type ontology:Q502895 } GROUP BY ?u } }
viola bass guitar double bass piano harpsichord vibraphone trumpet cello violin upright piano viola d'amore organ marimba drum kit electronic keyboard drum
Piano, harpsichord and viola are played by greater number of people than steel-string acoustic guitar
piano harpsichord viola
action greater
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity steel-string acoustic guitar
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?r ) WHERE { resource:steel-string_acoustic_guitar property:instrument ?f . ?f rdf:type ontology:musical_instrument } } . FILTER ( ?v > ?r ) . { SELECT DISTINCT ?u ( COUNT ( ?g ) AS ?v ) WHERE { ?g property:instrument ?u . ?u rdf:type ontology:musical_instrument . ?g rdf:type ontology:common_name } GROUP BY ?u } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q748455
P1303
Q34379 Q502895
USER
And also tell me about cajón?
(c(Q502895),P1303,c(Q34379))
action greater
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q748455
relation P1303
type Q34379
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?r ) AS ?q ) WHERE { ?r property:P1303 ?b . ?b rdf:type ontology:Q34379 . ?r rdf:type ontology:Q502895 } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?f ) WHERE { resource:Q748455 property:P1303 ?e . ?e rdf:type ontology:Q34379 } } . FILTER ( ?q > ?f ) }
cajón
action greater
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity cajón
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?r ) AS ?q ) WHERE { ?r property:instrument ?b . ?b rdf:type ontology:musical_instrument . ?r rdf:type ontology:common_name } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?f ) WHERE { resource:cajón property:instrument ?e . ?e rdf:type ontology:musical_instrument } } . FILTER ( ?q > ?f ) }
[]
musical instrument common name
Q1178361 Q5994 Q81982
SYSTEM
davul, piano, harpsichord
Q80284 Q46185 Q201129 Q424017 Q890073 Q80019 Q1178361 Q2563510 Q604538 Q2660670 Q5994 Q39777 Q3574843 Q678090 Q81982 Q182718 Q490054 Q873588 Q593995 Q1327500 Q206987 Q189737 Q1759986 Q1798603 Q1099153 Q8338 Q120585 Q713298 Q8371 Q8355 Q1024685 Q213461 Q3382191 Q816793 Q862501 Q213100 Q244976 Q537750 Q626035 Q1179017 Q742180 Q320341 Q1300012 Q1444 Q669370 Q290951 Q220971 Q178933 Q16875637 Q790468 Q128309 Q1129422 Q379248 Q726306 Q483994 Q744831 Q963150 Q16155191 Q644440 Q1343007 Q11404 Q497224 Q3623688
(c(Q502895),P1303,c(Q34379))
action greater
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q748455
relation P1303
type Q34379
[ANSWERS]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?r ) AS ?q ) WHERE { ?r property:P1303 ?b . ?b rdf:type ontology:Q34379 . ?r rdf:type ontology:Q502895 } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?f ) WHERE { resource:Q748455 property:P1303 ?e . ?e rdf:type ontology:Q34379 } } . FILTER ( ?q > ?f ) }
viola bass guitar lyre acoustic bass guitar Body percussion double bass davul steel-string acoustic guitar Temple block Irish bouzouki piano maraca tonbak Twelve-string guitar harpsichord Nyckelharpa Ondioline Jinghu player piano electronic musical instrument vibraphone timpani Wurlitzer electric piano string instrument clavinet trumpet Tsuzumi geomungo cello violin cabasa harmonium upright piano Bendir ondes Martenot tabla bodhrán Djembe glockenspiel Daxophone viola d'amore celesta toy piano organ gusle Kamancheh marimba Hardanger fiddle transverse flute baritone horn drum kit morin khuur Timbales erhu Kazoo Mridangam tenor guitar Saraswati veena Lap steel guitar electronic keyboard drum Kayamb Paraguayan harp
davul piano harpsichord
action greater
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity cajón
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?r ) AS ?q ) WHERE { ?r property:instrument ?b . ?b rdf:type ontology:musical_instrument . ?r rdf:type ontology:common_name } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?f ) WHERE { resource:cajón property:instrument ?e . ?e rdf:type ontology:musical_instrument } } . FILTER ( ?q > ?f ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P180
Q34379 Q386724
USER
Which works demonstrate atleast 2 musical instruments ?
(c(Q386724),P180,c(Q34379))
action atleast
action find_tuple_counts
relation P180
type Q386724
type Q34379
value 2
[{'concept': 'Q386724'}, 'P180', {'concept': 'Q34379'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?k ) AS ?z ) WHERE { ?i property:P180 ?k . ?i rdf:type ontology:Q386724 . ?k rdf:type ontology:Q34379 } GROUP BY ?i } . FILTER ( ?z >= 2 ) }
action atleast
action find_tuple_counts
relation depicts
type work
type musical instrument
value 2
[{'concept': 'work'}, 'depicts', {'concept': 'musical instrument'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?k ) AS ?z ) WHERE { ?i property:depicts ?k . ?i rdf:type ontology:work . ?k rdf:type ontology:musical_instrument } GROUP BY ?i } . FILTER ( ?z >= 2 ) }
[]
musical instrument work
Q2901063
SYSTEM
Borghese Vase
Q2901063
(c(Q386724),P180,c(Q34379))
action atleast
action find_tuple_counts
relation P180
type Q386724
type Q34379
value 2
[ANSWER] demonstrate atleast 2 musical instruments
[{'concept': 'Q386724'}, 'P180', {'concept': 'Q34379'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?k ) AS ?z ) WHERE { ?i property:P180 ?k . ?i rdf:type ontology:Q386724 . ?k rdf:type ontology:Q34379 } GROUP BY ?i } . FILTER ( ?z >= 2 ) }
Borghese Vase
Borghese Vase demonstrate atleast 2 musical instruments
Borghese Vase
action atleast
action find_tuple_counts
relation depicts
type work
type musical instrument
value 2
[{'concept': 'work'}, 'depicts', {'concept': 'musical instrument'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?k ) AS ?z ) WHERE { ?i property:depicts ?k . ?i rdf:type ontology:work . ?k rdf:type ontology:musical_instrument } GROUP BY ?i } . FILTER ( ?z >= 2 ) }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2901063
P195
Q7328910
USER
Where is that work preserved in ?
(Q2901063,P195,c(Q7328910))
action filter_type
action find
entity Q2901063
relation P195
type Q7328910
['Q2901063', 'P195', {'concept': 'Q7328910'}]
SELECT DISTINCT ?q WHERE { resource:Q2901063 property:P195 ?q . ?q rdf:type ontology:Q7328910 }
Borghese Vase
action filter_type
action find
entity Borghese Vase
relation collection
type art collection
['Borghese Vase', 'collection', {'concept': 'art collection'}]
SELECT DISTINCT ?q WHERE { resource:Borghese_Vase property:collection ?q . ?q rdf:type ontology:art_collection }
[]
art collection
Q683074
SYSTEM
Borghese Collection
Q683074
(Q2901063,P195,c(Q7328910))
action filter_type
action find
entity Q2901063
relation P195
type Q7328910
That work is preserved in the [ANSWER]
['Q2901063', 'P195', {'concept': 'Q7328910'}]
SELECT DISTINCT ?q WHERE { resource:Q2901063 property:P195 ?q . ?q rdf:type ontology:Q7328910 }
Borghese Collection
That work is preserved in the Borghese Collection
Borghese Collection
action filter_type
action find
entity Borghese Vase
relation collection
type art collection
['Borghese Vase', 'collection', {'concept': 'art collection'}]
SELECT DISTINCT ?q WHERE { resource:Borghese_Vase property:collection ?q . ?q rdf:type ontology:art_collection }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q683074
P127
Q8436
USER
Which family is the owner of that art collection ?
(Q683074,P127,c(Q8436))
action filter_type
action find
entity Q683074
relation P127
type Q8436
['Q683074', 'P127', {'concept': 'Q8436'}]
SELECT DISTINCT ?p WHERE { resource:Q683074 property:P127 ?p . ?p rdf:type ontology:Q8436 }
Borghese Collection
action filter_type
action find
entity Borghese Collection
relation owned by
type family
['Borghese Collection', 'owned by', {'concept': 'family'}]
SELECT DISTINCT ?p WHERE { resource:Borghese_Collection property:owned_by ?p . ?p rdf:type ontology:family }
[]
family
Q241133
SYSTEM
House of Borghese
Q241133
(Q683074,P127,c(Q8436))
action filter_type
action find
entity Q683074
relation P127
type Q8436
[ANSWER] is the owner of that art collection
['Q683074', 'P127', {'concept': 'Q8436'}]
SELECT DISTINCT ?p WHERE { resource:Q683074 property:P127 ?p . ?p rdf:type ontology:Q8436 }
House of Borghese
House of Borghese is the owner of that art collection
House of Borghese
action filter_type
action find
entity Borghese Collection
relation owned by
type family
['Borghese Collection', 'owned by', {'concept': 'family'}]
SELECT DISTINCT ?p WHERE { resource:Borghese_Collection property:owned_by ?p . ?p rdf:type ontology:family }
[]