Simple Question (Direct)
Simple Question
Q1246152
P840
Q15617994
USER
Which is the narrative location of Home of the Brave ?
(Q1246152,P840,c(Q15617994))
action filter_type
action find
entity Q1246152
relation P840
type Q15617994
['Q1246152', 'P840', {'concept': 'Q15617994'}]
SELECT DISTINCT ?m WHERE { resource:Q1246152 property:P840 ?m . ?m rdf:type ontology:Q15617994 }
Home of the Brave
action filter_type
action find
entity Home of the Brave
relation narrative location
type designation for an administrative territorial entity
['Home of the Brave', 'narrative location', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:Home_of_the_Brave property:narrative_location ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q1246152,P840,c(Q15617994))
action filter_type
action find
entity Q1246152
relation P840
type Q15617994
[ANSWER] is the narrative location of Home of the Brave
['Q1246152', 'P840', {'concept': 'Q15617994'}]
SELECT DISTINCT ?m WHERE { resource:Q1246152 property:P840 ?m . ?m rdf:type ontology:Q15617994 }
United States of America
United States of America is the narrative location of Home of the Brave
United States of America
action filter_type
action find
entity Home of the Brave
relation narrative location
type designation for an administrative territorial entity
['Home of the Brave', 'narrative location', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:Home_of_the_Brave property:narrative_location ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q30
P17
Q15617994
USER
Which administrative territory does that one belong to ?
(Q30,P17,c(Q15617994))
action filter_type
action find
entity Q30
relation P17
type Q15617994
['Q30', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q15617994 . resource:Q30 property:P17 ?g }
United States of America
action filter_type
action find
entity United States of America
relation country
type designation for an administrative territorial entity
['United States of America', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:United_States_of_America property:country ?g }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q30,P17,c(Q15617994))
action filter_type
action find
entity Q30
relation P17
type Q15617994
That one belongs to the [ANSWER]
['Q30', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q15617994 . resource:Q30 property:P17 ?g }
United States of America
That one belongs to the United States of America
United States of America
action filter_type
action find
entity United States of America
relation country
type designation for an administrative territorial entity
['United States of America', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:United_States_of_America property:country ?g }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q7306668
Q15617994
USER
And what about Reed Lakes?
(Q7306668,P17,c(Q15617994))
action filter_type
action find
entity Q7306668
relation P17
type Q15617994
['Q7306668', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { resource:Q7306668 property:P17 ?q . ?q rdf:type ontology:Q15617994 }
Reed Lakes
action filter_type
action find
entity Reed Lakes
relation country
type designation for an administrative territorial entity
['Reed Lakes', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:Reed_Lakes property:country ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q7306668,P17,c(Q15617994))
action filter_type
action find
entity Q7306668
relation P17
type Q15617994
[ANSWER]
['Q7306668', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { resource:Q7306668 property:P17 ?q . ?q rdf:type ontology:Q15617994 }
United States of America
United States of America
action filter_type
action find
entity Reed Lakes
relation country
type designation for an administrative territorial entity
['Reed Lakes', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:Reed_Lakes property:country ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q30
P921
Q526384
USER
Which Project was primarily based on that administrative territory ?
(c(Q526384),P921,Q30)
action filter_type
action find_reverse
entity Q30
relation P921
type Q526384
[{'concept': 'Q526384'}, 'P921', 'Q30']
SELECT DISTINCT ?n WHERE { ?n property:P921 resource:Q30 . ?n rdf:type ontology:Q526384 }
United States of America
action filter_type
action find_reverse
entity United States of America
relation main subject
type Project
[{'concept': 'Project'}, 'main subject', 'United States of America']
SELECT DISTINCT ?n WHERE { ?n property:main_subject resource:United_States_of_America . ?n rdf:type ontology:Project }
[]
Project
Q22978280
SYSTEM
Voter's Edge
Q22978280
(c(Q526384),P921,Q30)
action filter_type
action find_reverse
entity Q30
relation P921
type Q526384
[ANSWER] was primarily based on that administrative territory
[{'concept': 'Q526384'}, 'P921', 'Q30']
SELECT DISTINCT ?n WHERE { ?n property:P921 resource:Q30 . ?n rdf:type ontology:Q526384 }
Voter's Edge
Voter's Edge was primarily based on that administrative territory
Voter's Edge
action filter_type
action find_reverse
entity United States of America
relation main subject
type Project
[{'concept': 'Project'}, 'main subject', 'United States of America']
SELECT DISTINCT ?n WHERE { ?n property:main_subject resource:United_States_of_America . ?n rdf:type ontology:Project }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q30
P194
Q11204
USER
Which legislature is the legislative body for United States of America ?
(Q30,P194,c(Q11204))
action filter_type
action find
entity Q30
relation P194
type Q11204
['Q30', 'P194', {'concept': 'Q11204'}]
SELECT DISTINCT ?p WHERE { resource:Q30 property:P194 ?p . ?p rdf:type ontology:Q11204 }
United States of America
action filter_type
action find
entity United States of America
relation legislative body
type legislature
['United States of America', 'legislative body', {'concept': 'legislature'}]
SELECT DISTINCT ?p WHERE { resource:United_States_of_America property:legislative_body ?p . ?p rdf:type ontology:legislature }
[]
legislature
Q11268
SYSTEM
United States Congress
Q11268
(Q30,P194,c(Q11204))
action filter_type
action find
entity Q30
relation P194
type Q11204
The [ANSWER] is the legislative body for United States of America
['Q30', 'P194', {'concept': 'Q11204'}]
SELECT DISTINCT ?p WHERE { resource:Q30 property:P194 ?p . ?p rdf:type ontology:Q11204 }
United States Congress
The United States Congress is the legislative body for United States of America
United States Congress
action filter_type
action find
entity United States of America
relation legislative body
type legislature
['United States of America', 'legislative body', {'concept': 'legislature'}]
SELECT DISTINCT ?p WHERE { resource:United_States_of_America property:legislative_body ?p . ?p rdf:type ontology:legislature }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q11268 Q2928358
P749
Q895526
USER
Is that legislature a parent organization of United States Government Printing Office ?
(Q2928358,P749,Q11268)
action is_in
entity Q11268
action find
entity Q2928358
relation P749
['Q2928358', 'P749', 'Q11268']
ASK WHERE { resource:Q2928358 property:P749 resource:Q11268 }
United States Congress United States Government Printing Office
action is_in
entity United States Congress
action find
entity United States Government Printing Office
relation parent organization
['United States Government Printing Office', 'parent organization', 'United States Congress']
ASK WHERE { resource:United_States_Government_Printing_Office property:parent_organization resource:United_States_Congress }
[]
authority organ
SYSTEM
YES
(Q2928358,P749,Q11268)
action is_in
entity Q11268
action find
entity Q2928358
relation P749
[ANSWER]
['Q2928358', 'P749', 'Q11268']
ASK WHERE { resource:Q2928358 property:P749 resource:Q11268 }
Yes
action is_in
entity United States Congress
action find
entity United States Government Printing Office
relation parent organization
['United States Government Printing Office', 'parent organization', 'United States Congress']
ASK WHERE { resource:United_States_Government_Printing_Office property:parent_organization resource:United_States_Congress }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q30 Q23728722
P6
Q502895
USER
Is Georgel Vasile the head of the government of United States of America ?
(Q30,P6,Q23728722)
action is_in
entity Q23728722
action find
entity Q30
relation P6
['Q30', 'P6', 'Q23728722']
ASK WHERE { resource:Q30 property:P6 resource:Q23728722 }
United States of America Georgel Vasile
action is_in
entity Georgel Vasile
action find
entity United States of America
relation head of government
['United States of America', 'head of government', 'Georgel Vasile']
ASK WHERE { resource:United_States_of_America property:head_of_government resource:Georgel_Vasile }
[]
common name
SYSTEM
NO
(Q30,P6,Q23728722)
action is_in
entity Q23728722
action find
entity Q30
relation P6
[ANSWER]
['Q30', 'P6', 'Q23728722']
ASK WHERE { resource:Q30 property:P6 resource:Q23728722 }
No
action is_in
entity Georgel Vasile
action find
entity United States of America
relation head of government
['United States of America', 'head of government', 'Georgel Vasile']
ASK WHERE { resource:United_States_of_America property:head_of_government resource:Georgel_Vasile }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q1246152 Q163249
P161
Q502895
USER
Did Jessica Biel star in Home of the Brave ?
(Q1246152,P161,Q163249)
action is_in
entity Q163249
action find
entity Q1246152
relation P161
['Q1246152', 'P161', 'Q163249']
ASK WHERE { resource:Q1246152 property:P161 resource:Q163249 }
Home of the Brave Jessica Biel
action is_in
entity Jessica Biel
action find
entity Home of the Brave
relation cast member
['Home of the Brave', 'cast member', 'Jessica Biel']
ASK WHERE { resource:Home_of_the_Brave property:cast_member resource:Jessica_Biel }
[]
common name
SYSTEM
YES
(Q1246152,P161,Q163249)
action is_in
entity Q163249
action find
entity Q1246152
relation P161
[ANSWER]
['Q1246152', 'P161', 'Q163249']
ASK WHERE { resource:Q1246152 property:P161 resource:Q163249 }
Yes
action is_in
entity Jessica Biel
action find
entity Home of the Brave
relation cast member
['Home of the Brave', 'cast member', 'Jessica Biel']
ASK WHERE { resource:Home_of_the_Brave property:cast_member resource:Jessica_Biel }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q1896099 Q30
P26 P6
Q502895
USER
Which people are United States of America the head of goverment of or are married to Maria Loja ?
OR((Q30,P6,c(Q502895)), (Q1896099,P26,c(Q502895)))
action filter_type
action union
action find
entity Q30
relation P6
action find
entity Q1896099
relation P26
type Q502895
{'OR': [['Q30', 'P6', {'concept': 'Q502895'}], ['Q1896099', 'P26', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Q1896099 property:P26 ?x } UNION { resource:Q30 property:P6 ?x } } . ?x rdf:type ontology:Q502895 }
Maria Loja United States of America
action filter_type
action union
action find
entity United States of America
relation head of government
action find
entity Maria Loja
relation spouse
type common name
{'OR': [['United States of America', 'head of government', {'concept': 'common name'}], ['Maria Loja', 'spouse', {'concept': 'common name'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Maria_Loja property:spouse ?x } UNION { resource:United_States_of_America property:head_of_government ?x } } . ?x rdf:type ontology:common_name }
[]
common name
Q9916 Q11816 Q35286 Q33866 Q34836 Q35498 Q9640 Q11613 Q23 Q9588
SYSTEM
Some of them are Dwight D. Eisenhower, John Quincy Adams, Warren G. Harding, Theodore Roosevelt, Ulysses S. Grant, Chester A. Arthur, Lyndon B. Johnson, Harry S. Truman, George Washington, Richard Nixon
Q35171 Q11815 Q11816 Q11817 Q9588 Q11812 Q12306 Q91 Q12325 Q33866 Q35648 Q35498 Q9582 Q11869 Q207 Q11813 Q35236 Q23685 Q9696 Q87452 Q22686 Q34597 Q36023 Q11881 Q9916 Q12312 Q11806 Q35286 Q9640 Q35686 Q11820 Q35678 Q35041 Q34296 Q76 Q8612 Q34836 Q23505 Q23 Q1124 Q11613 Q11896 Q8007 Q9960 Q11891
OR((Q30,P6,c(Q502895)), (Q1896099,P26,c(Q502895)))
action filter_type
action union
action find
entity Q30
relation P6
action find
entity Q1896099
relation P26
type Q502895
[ANSWERS] are United States of America the head of goverment of or are married to Maria Loja
{'OR': [['Q30', 'P6', {'concept': 'Q502895'}], ['Q1896099', 'P26', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Q1896099 property:P26 ?x } UNION { resource:Q30 property:P6 ?x } } . ?x 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 Hans Stiebner 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 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
Dwight D. Eisenhower, John Quincy Adams, Warren G. Harding, Theodore Roosevelt, Ulysses S. Grant, Chester A. Arthur, Lyndon B. Johnson, Harry S. Truman, George Washington and Richard Nixon are United States of America the head of goverment of or are married to Maria Loja
Dwight D. Eisenhower John Quincy Adams Warren G. Harding Theodore Roosevelt Ulysses S. Grant Chester A. Arthur Lyndon B. Johnson Harry S. Truman George Washington Richard Nixon
action filter_type
action union
action find
entity United States of America
relation head of government
action find
entity Maria Loja
relation spouse
type common name
{'OR': [['United States of America', 'head of government', {'concept': 'common name'}], ['Maria Loja', 'spouse', {'concept': 'common name'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Maria_Loja property:spouse ?x } UNION { resource:United_States_of_America property:head_of_government ?x } } . ?x rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P206
Q15324 Q1267889 Q15617994
USER
How many administrative territories are situated close to atleast 1 bodies of water and waterways ?
(c(Q15617994),P206,c(Q15324)|c(Q1267889))
action count
action atleast
action union
action find_tuple_counts
relation P206
type Q15617994
type Q15324
action find_tuple_counts
relation P206
type Q15617994
type Q1267889
value 1
[{'concept': 'Q15617994'}, 'P206', [{'concept': 'Q15324'}, {'concept': 'Q1267889'}]]
SELECT DISTINCT ( COUNT ( ?a ) AS ?z ) WHERE { FILTER ( ?u >= 1 ) . { SELECT DISTINCT ?a ( COUNT ( ?i ) AS ?u ) WHERE { VALUES ( ?t ) { ( ontology:Q15324 ) ( ontology:Q1267889 ) } . ?i rdf:type ?t } GROUP BY ?a } }
action count
action atleast
action union
action find_tuple_counts
relation located next to body of water
type designation for an administrative territorial entity
type body of water
action find_tuple_counts
relation located next to body of water
type designation for an administrative territorial entity
type waterway
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'located next to body of water', [{'concept': 'body of water'}, {'concept': 'waterway'}]]
SELECT DISTINCT ( COUNT ( ?a ) AS ?z ) WHERE { FILTER ( ?u >= 1 ) . { SELECT DISTINCT ?a ( COUNT ( ?i ) AS ?u ) WHERE { VALUES ( ?t ) { ( ontology:body_of_water ) ( ontology:waterway ) } . ?i rdf:type ?t } GROUP BY ?a } }
[]
body of water waterway designation for an administrative territorial entity
SYSTEM
23
Q21111 Q446425 Q55 Q801 Q568926 Q884 Q216422 Q36 Q34 Q38 Q769680 Q236 Q20 Q3038 Q225 Q224 Q222 Q17 Q1577 Q516567 Q215 Q1009 Q1438
(c(Q15617994),P206,c(Q15324)|c(Q1267889))
action count
action atleast
action union
action find_tuple_counts
relation P206
type Q15617994
type Q15324
action find_tuple_counts
relation P206
type Q15617994
type Q1267889
value 1
[ANSWER]
[{'concept': 'Q15617994'}, 'P206', [{'concept': 'Q15324'}, {'concept': 'Q1267889'}]]
SELECT DISTINCT ( COUNT ( ?a ) AS ?z ) WHERE { FILTER ( ?u >= 1 ) . { SELECT DISTINCT ?a ( COUNT ( ?i ) AS ?u ) WHERE { VALUES ( ?t ) { ( ontology:Q15324 ) ( ontology:Q1267889 ) } . ?i rdf:type ?t } GROUP BY ?a } }
Corn Islands Altwarp Netherlands Israel Maasholm South Korea Samsø Poland Sweden Italy Bornholm Montenegro Norway Helgoland Bosnia and Herzegovina Croatia Albania Japan Neuwerk Kappeln Slovenia Cameroon Campania
23
action count
action atleast
action union
action find_tuple_counts
relation located next to body of water
type designation for an administrative territorial entity
type body of water
action find_tuple_counts
relation located next to body of water
type designation for an administrative territorial entity
type waterway
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'located next to body of water', [{'concept': 'body of water'}, {'concept': 'waterway'}]]
SELECT DISTINCT ( COUNT ( ?a ) AS ?z ) WHERE { FILTER ( ?u >= 1 ) . { SELECT DISTINCT ?a ( COUNT ( ?i ) AS ?u ) WHERE { VALUES ( ?t ) { ( ontology:body_of_water ) ( ontology:waterway ) } . ?i rdf:type ?t } GROUP BY ?a } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P1303
Q34379 Q502895
USER
Which musical instruments are played by min number of people ?
(c(Q502895),P1303,Q3623688)
action argmin
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
[{'concept': 'Q502895'}, 'P1303', 'Q3623688']
SELECT DISTINCT ?r WHERE { FILTER ( ?y = ?e ) . { SELECT DISTINCT ?r ( COUNT ( ?k ) AS ?y ) WHERE { ?k property:P1303 ?r . ?k rdf:type ontology:Q502895 . ?r rdf:type ontology:Q34379 } GROUP BY ?r } . { SELECT DISTINCT ( MIN ( ?c ) AS ?e ) { SELECT DISTINCT ?t ( COUNT ( ?v ) AS ?c ) WHERE { ?t rdf:type ontology:Q34379 . ?v rdf:type ontology:Q502895 . ?v property:P1303 ?t } GROUP BY ?t } } }
action argmin
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
[{'concept': 'common name'}, 'instrument', 'Paraguayan harp']
SELECT DISTINCT ?r WHERE { FILTER ( ?y = ?e ) . { SELECT DISTINCT ?r ( COUNT ( ?k ) AS ?y ) WHERE { ?k property:instrument ?r . ?k rdf:type ontology:common_name . ?r rdf:type ontology:musical_instrument } GROUP BY ?r } . { SELECT DISTINCT ( MIN ( ?c ) AS ?e ) { SELECT DISTINCT ?t ( COUNT ( ?v ) AS ?c ) WHERE { ?t rdf:type ontology:musical_instrument . ?v rdf:type ontology:common_name . ?v property:instrument ?t } GROUP BY ?t } } }
[]
musical instrument common name
Q1879664 Q748455 Q173453
SYSTEM
spoon, cajón, wind instrument
Q1879664 Q748455 Q173453
(c(Q502895),P1303,Q3623688)
action argmin
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
[ANSWERS] are played by min number of people
[{'concept': 'Q502895'}, 'P1303', 'Q3623688']
SELECT DISTINCT ?r WHERE { FILTER ( ?y = ?e ) . { SELECT DISTINCT ?r ( COUNT ( ?k ) AS ?y ) WHERE { ?k property:P1303 ?r . ?k rdf:type ontology:Q502895 . ?r rdf:type ontology:Q34379 } GROUP BY ?r } . { SELECT DISTINCT ( MIN ( ?c ) AS ?e ) { SELECT DISTINCT ?t ( COUNT ( ?v ) AS ?c ) WHERE { ?t rdf:type ontology:Q34379 . ?v rdf:type ontology:Q502895 . ?v property:P1303 ?t } GROUP BY ?t } } }
spoon cajón wind instrument
Spoon, cajón and wind instrument are played by min number of people
spoon cajón wind instrument
action argmin
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
[{'concept': 'common name'}, 'instrument', 'Paraguayan harp']
SELECT DISTINCT ?r WHERE { FILTER ( ?y = ?e ) . { SELECT DISTINCT ?r ( COUNT ( ?k ) AS ?y ) WHERE { ?k property:instrument ?r . ?k rdf:type ontology:common_name . ?r rdf:type ontology:musical_instrument } GROUP BY ?r } . { SELECT DISTINCT ( MIN ( ?c ) AS ?e ) { SELECT DISTINCT ?t ( COUNT ( ?v ) AS ?c ) WHERE { ?t rdf:type ontology:musical_instrument . ?v rdf:type ontology:common_name . ?v property:instrument ?t } GROUP BY ?t } } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q972487
P1441
Q2342494 Q838948 Q502895
USER
Which people are featured in greater number of collectables and works of art than Buonamico Buffalmacco ?
(c(Q502895),P1441,c(Q2342494)|c(Q838948))
action greater
action union
action find_tuple_counts
relation P1441
type Q502895
type Q2342494
action find_tuple_counts
relation P1441
type Q502895
type Q838948
action count
action filter_multi_types
action find
entity Q972487
relation P1441
type Q2342494
type Q838948
[{'concept': 'Q502895'}, 'P1441', [{'concept': 'Q2342494'}, {'concept': 'Q838948'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?l ) ?g WHERE { VALUES ( ?b ) { ( ontology:Q2342494 ) ( ontology:Q838948 ) } . ?s rdf:type ?b } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?f ) WHERE { { ?o rdf:type ?j . VALUES ( ?j ) { ( ontology:Q2342494 ) ( ontology:Q838948 ) } } . resource:Q972487 property:P1441 ?o } } . FILTER ( ?l > ?f ) }
Buonamico Buffalmacco
action greater
action union
action find_tuple_counts
relation present in work
type common name
type collectable
action find_tuple_counts
relation present in work
type common name
type work of art
action count
action filter_multi_types
action find
entity Buonamico Buffalmacco
relation present in work
type collectable
type work of art
[{'concept': 'common name'}, 'present in work', [{'concept': 'collectable'}, {'concept': 'work of art'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?l ) ?g WHERE { VALUES ( ?b ) { ( ontology:collectable ) ( ontology:work_of_art ) } . ?s rdf:type ?b } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?f ) WHERE { { ?o rdf:type ?j . VALUES ( ?j ) { ( ontology:collectable ) ( ontology:work_of_art ) } } . resource:Buonamico_Buffalmacco property:present_in_work ?o } } . FILTER ( ?l > ?f ) }
[]
collectable work of art common name
Q9181 Q37085 Q9077
SYSTEM
Abraham, Solomon, Moses
Q23885172 Q9077 Q25858050 Q37085 Q26721185 Q9181
(c(Q502895),P1441,c(Q2342494)|c(Q838948))
action greater
action union
action find_tuple_counts
relation P1441
type Q502895
type Q2342494
action find_tuple_counts
relation P1441
type Q502895
type Q838948
action count
action filter_multi_types
action find
entity Q972487
relation P1441
type Q2342494
type Q838948
[ANSWERS] are featured in greater number of collectables and works of art than Buonamico Buffalmacco
[{'concept': 'Q502895'}, 'P1441', [{'concept': 'Q2342494'}, {'concept': 'Q838948'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?l ) ?g WHERE { VALUES ( ?b ) { ( ontology:Q2342494 ) ( ontology:Q838948 ) } . ?s rdf:type ?b } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?f ) WHERE { { ?o rdf:type ?j . VALUES ( ?j ) { ( ontology:Q2342494 ) ( ontology:Q838948 ) } } . resource:Q972487 property:P1441 ?o } } . FILTER ( ?l > ?f ) }
Victor Petit Moses Helen Kingsleigh Solomon Lena Gogan Abraham
Abraham, Solomon and Moses are featured in greater number of collectables and works of art than Buonamico Buffalmacco
Abraham Solomon Moses
action greater
action union
action find_tuple_counts
relation present in work
type common name
type collectable
action find_tuple_counts
relation present in work
type common name
type work of art
action count
action filter_multi_types
action find
entity Buonamico Buffalmacco
relation present in work
type collectable
type work of art
[{'concept': 'common name'}, 'present in work', [{'concept': 'collectable'}, {'concept': 'work of art'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?l ) ?g WHERE { VALUES ( ?b ) { ( ontology:collectable ) ( ontology:work_of_art ) } . ?s rdf:type ?b } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?f ) WHERE { { ?o rdf:type ?j . VALUES ( ?j ) { ( ontology:collectable ) ( ontology:work_of_art ) } } . resource:Buonamico_Buffalmacco property:present_in_work ?o } } . FILTER ( ?l > ?f ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q560559
P1441
Q2342494 Q838948 Q502895
USER
And also tell me about Constans II?
(c(Q502895),P1441,c(Q2342494)|c(Q838948))
action greater
action union
action find_tuple_counts
relation P1441
type Q502895
type Q2342494
action find_tuple_counts
relation P1441
type Q502895
type Q838948
action count
action filter_multi_types
action find
entity Q560559
relation P1441
type Q2342494
type Q838948
[{'concept': 'Q502895'}, 'P1441', [{'concept': 'Q2342494'}, {'concept': 'Q838948'}]]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?b ) AS ?r ) WHERE { { ?v property:P1441 ?b . ?v rdf:type ontology:Q502895 . ?b rdf:type ontology:Q2342494 } UNION { ?v property:P1441 ?b . ?v rdf:type ontology:Q502895 . ?b rdf:type ontology:Q838948 } } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?q ) WHERE { { { ?w rdf:type ontology:Q2342494 } UNION { ?w rdf:type ontology:Q838948 } } . resource:Q560559 property:P1441 ?w } } . FILTER ( ?r > ?q ) }
Constans II
action greater
action union
action find_tuple_counts
relation present in work
type common name
type collectable
action find_tuple_counts
relation present in work
type common name
type work of art
action count
action filter_multi_types
action find
entity Constans II
relation present in work
type collectable
type work of art
[{'concept': 'common name'}, 'present in work', [{'concept': 'collectable'}, {'concept': 'work of art'}]]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?b ) AS ?r ) WHERE { { ?v property:present_in_work ?b . ?v rdf:type ontology:common_name . ?b rdf:type ontology:collectable } UNION { ?v property:present_in_work ?b . ?v rdf:type ontology:common_name . ?b rdf:type ontology:work_of_art } } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?q ) WHERE { { { ?w rdf:type ontology:collectable } UNION { ?w rdf:type ontology:work_of_art } } . resource:Constans_II property:present_in_work ?w } } . FILTER ( ?r > ?q ) }
[]
collectable work of art common name
Q41370 Q9181 Q270438
SYSTEM
David, Abraham, Charles of Valois
Q660359 Q23885172 Q232525 Q24579400 Q24624067 Q160116 Q785349 Q3858588 Q4154984 Q3343834 Q24577230 Q494455 Q185801 Q6239779 Q34428 Q24622402 Q20656752 Q1353836 Q294192 Q19975705 Q25885222 Q134646 Q181538 Q24623408 Q9077 Q3778878 Q1348720 Q24624893 Q1396131 Q716237 Q41370 Q2124082 Q24625686 Q315276 Q3148218 Q24577318 Q24625326 Q25858050 Q26858752 Q24633210 Q3745274 Q3867479 Q19348839 Q1093885 Q1346246 Q3010053 Q164889 Q24625073 Q27621044 Q24623579 Q366070 Q270438 Q1341779 Q37085 Q972487 Q313395 Q8581 Q24577238 Q24632700 Q24626363 Q24633126 Q3658171 Q4804479 Q26721185 Q24623790 Q2296791 Q200947 Q24083251 Q9181 Q25923184 Q312311 Q169329 Q302322 Q3761044 Q76721 Q26858995 Q283466 Q9441 Q372783 Q16006746 Q24626010 Q26858919 Q1227361
(c(Q502895),P1441,c(Q2342494)|c(Q838948))
action greater
action union
action find_tuple_counts
relation P1441
type Q502895
type Q2342494
action find_tuple_counts
relation P1441
type Q502895
type Q838948
action count
action filter_multi_types
action find
entity Q560559
relation P1441
type Q2342494
type Q838948
[ANSWERS]
[{'concept': 'Q502895'}, 'P1441', [{'concept': 'Q2342494'}, {'concept': 'Q838948'}]]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?b ) AS ?r ) WHERE { { ?v property:P1441 ?b . ?v rdf:type ontology:Q502895 . ?b rdf:type ontology:Q2342494 } UNION { ?v property:P1441 ?b . ?v rdf:type ontology:Q502895 . ?b rdf:type ontology:Q838948 } } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?q ) WHERE { { { ?w rdf:type ontology:Q2342494 } UNION { ?w rdf:type ontology:Q838948 } } . resource:Q560559 property:P1441 ?w } } . FILTER ( ?r > ?q ) }
Cecco Angiolieri Victor Petit Theodelinda Jebidiah Farnsworth Bea Hansen Alexander III Cangrande I della Scala Mino da San Quirico Kai Darab Norman Winther Harriet Mutesi Orville Wright Mikhail Kutuzov John Hooper Philip Frank Fauteux Bernard C. Webber Hrothgar Guy of Lusignan Daniel Webster Cluff James Harcourt Boniface VIII Rudolf Abel Eldon Hanan Moses Guglielmo Borsiere Guy de Montfort, Count of Nola Raymond Sybert Wilbur Wright Song Jiang David Azzo VIII d'Este, Marquis of Ferrara Andy Fitzgerald Agilulf Ignacy Przybyszewski Sara Katende Miriam Webber Helen Kingsleigh Sarah Katende George "Tiny" Myers Filippo Minutolo Musciatto Franzesi Salammbô Hathi Johnny Ringo Céleste de Chateaubriand Manfred, King of Sicily Richard Livesey Davy Brown Wallace Quirey George William Russell Charles of Valois Kai Lohrasp Solomon Buonamico Buffalmacco Authari Saladin Robert Katende John Stello Mel Gouthro Donald Bangs Phiona Mutesi Ash Vasudevan Lena Gogan D.A. Brown Molly Bloom Ahmad ibn Fadlan Stan the Man Abraham Elizabeth Ham Peter III of Aragon Conrad of Montferrat Calandrino Geri Spini Godfrey of Bouillon Aloysius Kyazze Roger of Lauria Gautama Buddha Adrian Cronauer James B. Donovan Ervin Maske Hope Katende John of Procida
David Abraham Charles of Valois
action greater
action union
action find_tuple_counts
relation present in work
type common name
type collectable
action find_tuple_counts
relation present in work
type common name
type work of art
action count
action filter_multi_types
action find
entity Constans II
relation present in work
type collectable
type work of art
[{'concept': 'common name'}, 'present in work', [{'concept': 'collectable'}, {'concept': 'work of art'}]]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?b ) AS ?r ) WHERE { { ?v property:present_in_work ?b . ?v rdf:type ontology:common_name . ?b rdf:type ontology:collectable } UNION { ?v property:present_in_work ?b . ?v rdf:type ontology:common_name . ?b rdf:type ontology:work_of_art } } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?q ) WHERE { { { ?w rdf:type ontology:collectable } UNION { ?w rdf:type ontology:work_of_art } } . resource:Constans_II property:present_in_work ?w } } . FILTER ( ?r > ?q ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
How many musical instruments are played by atleast 2362 people ?
(c(Q502895),P1303,c(Q34379))
action count
action atleast
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 2362
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?b ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?s ) AS ?d ) WHERE { ?s property:P1303 ?p . ?s rdf:type ontology:Q502895 . ?p rdf:type ontology:Q34379 } GROUP BY ?p } . FILTER ( ?d >= 2362 ) }
action count
action atleast
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 2362
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?b ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?s ) AS ?d ) WHERE { ?s property:instrument ?p . ?s rdf:type ontology:common_name . ?p rdf:type ontology:musical_instrument } GROUP BY ?p } . FILTER ( ?d >= 2362 ) }
[]
musical instrument common name
SYSTEM
3
Q5994 Q8355 Q1444
(c(Q502895),P1303,c(Q34379))
action count
action atleast
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 2362
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?b ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?s ) AS ?d ) WHERE { ?s property:P1303 ?p . ?s rdf:type ontology:Q502895 . ?p rdf:type ontology:Q34379 } GROUP BY ?p } . FILTER ( ?d >= 2362 ) }
piano violin organ
3
action count
action atleast
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 2362
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?b ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?s ) AS ?d ) WHERE { ?s property:instrument ?p . ?s rdf:type ontology:common_name . ?p rdf:type ontology:musical_instrument } GROUP BY ?p } . FILTER ( ?d >= 2362 ) }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q30 Q11268
P194 P17
Q15617994
USER
Which administrative territories have United States Congress as their legislative body and are present in United States of America ?
AND((c(Q15617994),P194,Q11268), (c(Q15617994),P17,Q30))
action filter_type
action intersection
action find_reverse
entity Q11268
relation P194
action find_reverse
entity Q30
relation P17
type Q15617994
{'AND': [[{'concept': 'Q15617994'}, 'P194', 'Q11268'], [{'concept': 'Q15617994'}, 'P17', 'Q30']]}
SELECT DISTINCT ?h WHERE { ?h property:P194 resource:Q11268 . ?h property:P17 resource:Q30 . ?h rdf:type ontology:Q15617994 }
United States of America United States Congress
action filter_type
action intersection
action find_reverse
entity United States Congress
relation legislative body
action find_reverse
entity United States of America
relation country
type designation for an administrative territorial entity
{'AND': [[{'concept': 'designation for an administrative territorial entity'}, 'legislative body', 'United States Congress'], [{'concept': 'designation for an administrative territorial entity'}, 'country', 'United States of America']]}
SELECT DISTINCT ?h WHERE { ?h property:legislative_body resource:United_States_Congress . ?h property:country resource:United_States_of_America . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
AND((c(Q15617994),P194,Q11268), (c(Q15617994),P17,Q30))
action filter_type
action intersection
action find_reverse
entity Q11268
relation P194
action find_reverse
entity Q30
relation P17
type Q15617994
The [ANSWER] have United States Congress as their legislative body and are present in [ANSWER]
{'AND': [[{'concept': 'Q15617994'}, 'P194', 'Q11268'], [{'concept': 'Q15617994'}, 'P17', 'Q30']]}
SELECT DISTINCT ?h WHERE { ?h property:P194 resource:Q11268 . ?h property:P17 resource:Q30 . ?h rdf:type ontology:Q15617994 }
United States of America
The United States of America have United States Congress as their legislative body and are present in United States of America
United States of America
action filter_type
action intersection
action find_reverse
entity United States Congress
relation legislative body
action find_reverse
entity United States of America
relation country
type designation for an administrative territorial entity
{'AND': [[{'concept': 'designation for an administrative territorial entity'}, 'legislative body', 'United States Congress'], [{'concept': 'designation for an administrative territorial entity'}, 'country', 'United States of America']]}
SELECT DISTINCT ?h WHERE { ?h property:legislative_body resource:United_States_Congress . ?h property:country resource:United_States_of_America . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]