Simple Question (Direct)
Simple Question
Q351052
P54
Q1194951
USER
Which national sports team is Adam Taggart a member of ?
(Q351052,P54,c(Q1194951))
action filter_type
action find
entity Q351052
relation P54
type Q1194951
['Q351052', 'P54', {'concept': 'Q1194951'}]
SELECT DISTINCT ?x WHERE { resource:Q351052 property:P54 ?x . ?x rdf:type ontology:Q1194951 }
Adam Taggart
action filter_type
action find
entity Adam Taggart
relation member of sports team
type national sports team
['Adam Taggart', 'member of sports team', {'concept': 'national sports team'}]
SELECT DISTINCT ?x WHERE { resource:Adam_Taggart property:member_of_sports_team ?x . ?x rdf:type ontology:national_sports_team }
[]
national sports team
Q268208
SYSTEM
Australia national association football team
Q268208
(Q351052,P54,c(Q1194951))
action filter_type
action find
entity Q351052
relation P54
type Q1194951
The [ANSWER] is Adam Taggart a member of
['Q351052', 'P54', {'concept': 'Q1194951'}]
SELECT DISTINCT ?x WHERE { resource:Q351052 property:P54 ?x . ?x rdf:type ontology:Q1194951 }
Australia national association football team
The Australia national association football team is Adam Taggart a member of
Australia national association football team
action filter_type
action find
entity Adam Taggart
relation member of sports team
type national sports team
['Adam Taggart', 'member of sports team', {'concept': 'national sports team'}]
SELECT DISTINCT ?x WHERE { resource:Adam_Taggart property:member_of_sports_team ?x . ?x rdf:type ontology:national_sports_team }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q351052
P106
Q12737077
USER
What does that person do for a living ?
(Q268208,P106,c(Q12737077))
action filter_type
action find
entity Q351052
relation P106
type Q12737077
['Q268208', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?w WHERE { resource:Q351052 property:P106 ?w . ?w rdf:type ontology:Q12737077 }
Adam Taggart
action filter_type
action find
entity Adam Taggart
relation occupation
type occupation
['Australia national association football team', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?w WHERE { resource:Adam_Taggart property:occupation ?w . ?w rdf:type ontology:occupation }
[]
occupation
Q937857
SYSTEM
association football player
Q937857
(Q268208,P106,c(Q12737077))
action filter_type
action find
entity Q351052
relation P106
type Q12737077
Player [ANSWER] that person does for a living
['Q268208', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?w WHERE { resource:Q351052 property:P106 ?w . ?w rdf:type ontology:Q12737077 }
association football player
Player association football player that person does for a living
association football player
action filter_type
action find
entity Adam Taggart
relation occupation
type occupation
['Australia national association football team', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?w WHERE { resource:Adam_Taggart property:occupation ?w . ?w rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q351052
P21
Q290
USER
What is the sex of that person ?
(Q937857,P21,c(Q290))
action filter_type
action find
entity Q351052
relation P21
type Q290
['Q937857', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?q WHERE { resource:Q351052 property:P21 ?q . ?q rdf:type ontology:Q290 }
Adam Taggart
action filter_type
action find
entity Adam Taggart
relation gender
type sex
['association football player', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?q WHERE { resource:Adam_Taggart property:gender ?q . ?q rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q937857,P21,c(Q290))
action filter_type
action find
entity Q351052
relation P21
type Q290
The sex of that person is a [ANSWER]
['Q937857', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?q WHERE { resource:Q351052 property:P21 ?q . ?q rdf:type ontology:Q290 }
male
The sex of that person is a male
male
action filter_type
action find
entity Adam Taggart
relation gender
type sex
['association football player', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?q WHERE { resource:Adam_Taggart property:gender ?q . ?q rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6581097
P180
Q3305213
USER
Which painting expressess that sex ?
(c(Q3305213),P180,Q6581097)
action filter_type
action find_reverse
entity Q6581097
relation P180
type Q3305213
[{'concept': 'Q3305213'}, 'P180', 'Q6581097']
SELECT DISTINCT ?b WHERE { ?b property:P180 resource:Q6581097 . ?b rdf:type ontology:Q3305213 }
male
action filter_type
action find_reverse
entity male
relation depicts
type painting
[{'concept': 'painting'}, 'depicts', 'male']
SELECT DISTINCT ?b WHERE { ?b property:depicts resource:male . ?b rdf:type ontology:painting }
[]
painting
Q18713957
SYSTEM
Raja Surendra Vikram Shah at the age of 15 with his prime minister
Q18713957
(c(Q3305213),P180,Q6581097)
action filter_type
action find_reverse
entity Q6581097
relation P180
type Q3305213
[ANSWER] expressess that sex
[{'concept': 'Q3305213'}, 'P180', 'Q6581097']
SELECT DISTINCT ?b WHERE { ?b property:P180 resource:Q6581097 . ?b rdf:type ontology:Q3305213 }
Raja Surendra Vikram Shah at the age of 15 with his prime minister
Raja Surendra Vikram Shah at the age of 15 with his prime minister expressess that sex
Raja Surendra Vikram Shah at the age of 15 with his prime minister
action filter_type
action find_reverse
entity male
relation depicts
type painting
[{'concept': 'painting'}, 'depicts', 'male']
SELECT DISTINCT ?b WHERE { ?b property:depicts resource:male . ?b rdf:type ontology:painting }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q16509292 Q351052
P27
Q1048835
USER
Which political territories are the countries of citizenship of Adam Taggart or Hans Heinrich Reclam ?
OR((Q351052,P27,c(Q1048835)), (Q16509292,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q351052
relation P27
action find
entity Q16509292
relation P27
type Q1048835
{'OR': [['Q351052', 'P27', {'concept': 'Q1048835'}], ['Q16509292', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q1048835 . { { resource:Q351052 property:P27 ?u } UNION { resource:Q16509292 property:P27 ?u } } }
Hans Heinrich Reclam Adam Taggart
action filter_type
action union
action find
entity Adam Taggart
relation country of citizenship
action find
entity Hans Heinrich Reclam
relation country of citizenship
type political territorial entity
{'OR': [['Adam Taggart', 'country of citizenship', {'concept': 'political territorial entity'}], ['Hans Heinrich Reclam', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:political_territorial_entity . { { resource:Adam_Taggart property:country_of_citizenship ?u } UNION { resource:Hans_Heinrich_Reclam property:country_of_citizenship ?u } } }
[]
political territorial entity
Q408 Q183
SYSTEM
Australia, Germany
Q408 Q183
OR((Q351052,P27,c(Q1048835)), (Q16509292,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q351052
relation P27
action find
entity Q16509292
relation P27
type Q1048835
[ANSWERS] are the countries of citizenship of Adam Taggart or Hans Heinrich Reclam
{'OR': [['Q351052', 'P27', {'concept': 'Q1048835'}], ['Q16509292', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q1048835 . { { resource:Q351052 property:P27 ?u } UNION { resource:Q16509292 property:P27 ?u } } }
Australia Germany
Australia and Germany are the countries of citizenship of Adam Taggart or Hans Heinrich Reclam
Australia Germany
action filter_type
action union
action find
entity Adam Taggart
relation country of citizenship
action find
entity Hans Heinrich Reclam
relation country of citizenship
type political territorial entity
{'OR': [['Adam Taggart', 'country of citizenship', {'concept': 'political territorial entity'}], ['Hans Heinrich Reclam', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:political_territorial_entity . { { resource:Adam_Taggart property:country_of_citizenship ?u } UNION { resource:Hans_Heinrich_Reclam property:country_of_citizenship ?u } } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q1048835 Q1048835
USER
How many political territories are known to have diplomatic connections with approximately 5 political territories ?
(c(Q1048835),P530,c(Q1048835))
action count
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
value 5
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?b ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?o ) AS ?y ) WHERE { ?h property:P530 ?o . ?h rdf:type ontology:Q1048835 . ?o rdf:type ontology:Q1048835 } GROUP BY ?h } . FILTER ( ?y = 5 ) }
action count
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
value 5
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?b ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?o ) AS ?y ) WHERE { ?h property:diplomatic_relation ?o . ?h rdf:type ontology:political_territorial_entity . ?o rdf:type ontology:political_territorial_entity } GROUP BY ?h } . FILTER ( ?y = 5 ) }
[]
political territorial entity political territorial entity
SYSTEM
4
Q183 Q35 Q16 Q664
(c(Q1048835),P530,c(Q1048835))
action count
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
value 5
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?b ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?o ) AS ?y ) WHERE { ?h property:P530 ?o . ?h rdf:type ontology:Q1048835 . ?o rdf:type ontology:Q1048835 } GROUP BY ?h } . FILTER ( ?y = 5 ) }
Germany Denmark Canada New Zealand
4
action count
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
value 5
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?b ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?o ) AS ?y ) WHERE { ?h property:diplomatic_relation ?o . ?h rdf:type ontology:political_territorial_entity . ?o rdf:type ontology:political_territorial_entity } GROUP BY ?h } . FILTER ( ?y = 5 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q1048835
USER
How many administrative territories holds diplomatic relationship with approximately 3 political territories ?
(c(Q1048835),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
value 3
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?n ) WHERE { FILTER ( ?g = 3 ) . { SELECT DISTINCT ?i ( COUNT ( ?p ) AS ?g ) WHERE { ?i property:P530 ?p . ?p rdf:type ontology:Q1048835 . ?i rdf:type ontology:Q15617994 } GROUP BY ?i } }
action count
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
value 3
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?n ) WHERE { FILTER ( ?g = 3 ) . { SELECT DISTINCT ?i ( COUNT ( ?p ) AS ?g ) WHERE { ?i property:diplomatic_relation ?p . ?p rdf:type ontology:political_territorial_entity . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?i } }
[]
designation for an administrative territorial entity political territorial entity
SYSTEM
32
Q801 Q142 Q145 Q711 Q252 Q403 Q258 Q159 Q43 Q884 Q33 Q30 Q36 Q34 Q39 Q739 Q423 Q851 Q20 Q843 Q1029 Q229 Q1030 Q115 Q114 Q212 Q218 Q833 Q79 Q77 Q878 Q953
(c(Q1048835),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
value 3
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?n ) WHERE { FILTER ( ?g = 3 ) . { SELECT DISTINCT ?i ( COUNT ( ?p ) AS ?g ) WHERE { ?i property:P530 ?p . ?p rdf:type ontology:Q1048835 . ?i rdf:type ontology:Q15617994 } GROUP BY ?i } }
Israel France United Kingdom Mongolia Indonesia Serbia South Africa Russia Turkey South Korea Finland United States of America Poland Sweden Switzerland Colombia North Korea Saudi Arabia Norway Pakistan Mozambique Cyprus Namibia Ethiopia Kenya Ukraine Romania Malaysia Egypt Uruguay United Arab Emirates Zambia
32
action count
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
value 3
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?n ) WHERE { FILTER ( ?g = 3 ) . { SELECT DISTINCT ?i ( COUNT ( ?p ) AS ?g ) WHERE { ?i property:diplomatic_relation ?p . ?p rdf:type ontology:political_territorial_entity . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?i } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q1048835 Q1048835
USER
Which political territories have ambassadorial relations with min number of political territories ?
(c(Q1048835),P530,c(Q1048835))
action argmin
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( MIN ( ?s ) AS ?o ) { SELECT DISTINCT ?u ( COUNT ( ?l ) AS ?s ) WHERE { ?u property:P530 ?l . ?u rdf:type ontology:Q1048835 . ?l rdf:type ontology:Q1048835 } GROUP BY ?u } } . { SELECT DISTINCT ?f ( COUNT ( ?q ) AS ?g ) WHERE { ?f property:P530 ?q . ?f rdf:type ontology:Q1048835 . ?q rdf:type ontology:Q1048835 } GROUP BY ?f } . FILTER ( ?g = ?o ) }
action argmin
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( MIN ( ?s ) AS ?o ) { SELECT DISTINCT ?u ( COUNT ( ?l ) AS ?s ) WHERE { ?u property:diplomatic_relation ?l . ?u rdf:type ontology:political_territorial_entity . ?l rdf:type ontology:political_territorial_entity } GROUP BY ?u } } . { SELECT DISTINCT ?f ( COUNT ( ?q ) AS ?g ) WHERE { ?f property:diplomatic_relation ?q . ?f rdf:type ontology:political_territorial_entity . ?q rdf:type ontology:political_territorial_entity } GROUP BY ?f } . FILTER ( ?g = ?o ) }
[]
political territorial entity political territorial entity
Q1000 Q769 Q691
SYSTEM
Gabon, Grenada, Papua New Guinea
Q1000 Q781 Q778 Q769 Q685 Q691 Q766
(c(Q1048835),P530,c(Q1048835))
action argmin
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
[ANSWERS] have ambassadorial relations with min number of political territories
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( MIN ( ?s ) AS ?o ) { SELECT DISTINCT ?u ( COUNT ( ?l ) AS ?s ) WHERE { ?u property:P530 ?l . ?u rdf:type ontology:Q1048835 . ?l rdf:type ontology:Q1048835 } GROUP BY ?u } } . { SELECT DISTINCT ?f ( COUNT ( ?q ) AS ?g ) WHERE { ?f property:P530 ?q . ?f rdf:type ontology:Q1048835 . ?q rdf:type ontology:Q1048835 } GROUP BY ?f } . FILTER ( ?g = ?o ) }
Gabon Antigua and Barbuda The Bahamas Grenada Solomon Islands Papua New Guinea Jamaica
Gabon, Grenada and Papua New Guinea have ambassadorial relations with min number of political territories
Gabon Grenada Papua New Guinea
action argmin
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( MIN ( ?s ) AS ?o ) { SELECT DISTINCT ?u ( COUNT ( ?l ) AS ?s ) WHERE { ?u property:diplomatic_relation ?l . ?u rdf:type ontology:political_territorial_entity . ?l rdf:type ontology:political_territorial_entity } GROUP BY ?u } } . { SELECT DISTINCT ?f ( COUNT ( ?q ) AS ?g ) WHERE { ?f property:diplomatic_relation ?q . ?f rdf:type ontology:political_territorial_entity . ?q rdf:type ontology:political_territorial_entity } GROUP BY ?f } . FILTER ( ?g = ?o ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P530
Q1048835 Q1048835 Q15617994
USER
Which political territories have diplomatic relationships with atleast 54 political territories and administrative territories ?
(c(Q1048835)|c(Q15617994),P530,c(Q1048835))
action atleast
action union
action find_reverse_tuple_counts
relation P530
type Q1048835
type Q1048835
action find_reverse_tuple_counts
relation P530
type Q1048835
type Q15617994
value 54
[[{'concept': 'Q1048835'}, {'concept': 'Q15617994'}], 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?t ) ?l WHERE { VALUES ( ?j ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } . ?y rdf:type ?j } GROUP BY ?l } . FILTER ( ?t >= 54 ) }
action atleast
action union
action find_reverse_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action find_reverse_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 54
[[{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}], 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?t ) ?l WHERE { VALUES ( ?j ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } . ?y rdf:type ?j } GROUP BY ?l } . FILTER ( ?t >= 54 ) }
[]
political territorial entity political territorial entity designation for an administrative territorial entity
Q183 Q408
SYSTEM
Germany, Australia
Q183 Q408
(c(Q1048835)|c(Q15617994),P530,c(Q1048835))
action atleast
action union
action find_reverse_tuple_counts
relation P530
type Q1048835
type Q1048835
action find_reverse_tuple_counts
relation P530
type Q1048835
type Q15617994
value 54
[ANSWERS] have diplomatic relationships with atleast 54 political territories and administrative territories
[[{'concept': 'Q1048835'}, {'concept': 'Q15617994'}], 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?t ) ?l WHERE { VALUES ( ?j ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } . ?y rdf:type ?j } GROUP BY ?l } . FILTER ( ?t >= 54 ) }
Germany Australia
Germany and Australia have diplomatic relationships with atleast 54 political territories and administrative territories
Germany Australia
action atleast
action union
action find_reverse_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action find_reverse_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 54
[[{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}], 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?t ) ?l WHERE { VALUES ( ?j ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } . ?y rdf:type ?j } GROUP BY ?l } . FILTER ( ?t >= 54 ) }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581097 Q769
P27 P21
Q502895
USER
Which people are a citizen of Grenada and have the gender as male ?
AND((c(Q502895),P27,Q769), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q769
relation P27
action find_reverse
entity Q6581097
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P27', 'Q769'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q502895 . ?g property:P21 resource:Q6581097 . ?g property:P27 resource:Q769 }
male Grenada
action filter_type
action intersection
action find_reverse
entity Grenada
relation country of citizenship
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'country of citizenship', 'Grenada'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:common_name . ?g property:gender resource:male . ?g property:country_of_citizenship resource:Grenada }
[]
common name
Q205876 Q7154407 Q5232748 Q3817628 Q6124935 Q7526809 Q5386571 Q4118212 Q7108822 Q1276896
SYSTEM
Some of them are Mighty Sparrow, Paul Williams, David Cyrus, Kwan Baptiste, Jake Rennie, Sir Galba, Eric George, Patrick Modeste, Otis Roberts, Herbert Blaize
Q6410254 Q3370645 Q5257480 Q15993569 Q6758261 Q5731411 Q26772688 Q7360525 Q1655 Q370110 Q24175360 Q24955988 Q3817628 Q709738 Q953795 Q7494080 Q23322176 Q1235746 Q2001138 Q187905 Q5049421 Q4118182 Q11767328 Q4754754 Q5449780 Q5407440 Q20630695 Q5233381 Q289917 Q6446727 Q2979441 Q5232748 Q4699525 Q4118212 Q3066232 Q5405010 Q816529 Q636298 Q2373658 Q6530907 Q3814389 Q356480 Q2852978 Q4118219 Q5543548 Q468234 Q6313507 Q7613264 Q6313411 Q644652 Q5259290 Q380137 Q7154407 Q6778337 Q15999943 Q7032248 Q6708694 Q1547811 Q57796 Q7982472 Q6832531 Q6124935 Q1276896 Q26704752 Q23638537 Q16223468 Q6450244 Q9310267 Q5267759 Q20030862 Q26701397 Q5264775 Q7526809 Q7360164 Q6483214 Q205876 Q27680444 Q4754717 Q4727341 Q6162772 Q5450578 Q5455688 Q3618478 Q16221788 Q203046 Q1776271 Q118047 Q4754910 Q14375081 Q3814807 Q871955 Q1984818 Q7108822 Q5386571 Q7489006 Q58231 Q3993192
AND((c(Q502895),P27,Q769), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q769
relation P27
action find_reverse
entity Q6581097
relation P21
type Q502895
[ANSWERS] are a citizen of Grenada and have the gender as male
{'AND': [[{'concept': 'Q502895'}, 'P27', 'Q769'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q502895 . ?g property:P21 resource:Q6581097 . ?g property:P27 resource:Q769 }
Kimroy Redhead Joel Redhead Denis Rennie Chrysler Thomas Marcus Julien Henson Cuffie Andon Mitchell Rolande Moses Kirani James Keith Mitchell Lindon Victor Anderson Peters Kwan Baptiste Paul Scoon Hudson Austin Shemel Louison Payton Hazzard Dolliver Nelson Shalrie Joseph Daniel Williams Cassim Langaigne Shane Rennie Marc Marshall Andre Charles Finbar Williams Eugene Licorish Jamal Charles David Emmanuel Étienne Marchand Kurt Felix Clive Murray David Cyrus Ajamu Patrick Modeste Rondell Bartholomew Ettienne Richardson Ben Jones Alleyne Francique Sydney Anicetus Charles Leslie Hutchinson Kellon Baptiste Jason Roberts Anthony Straker Ricky Charles George Prime Maurice Bishop Junior Williams Steve Mark Junior Paul Dwayne Leo Denron Daniel Carlyle Glean Paul Williams Marvin Frederick Aaron Pierre Nigel Bishop Lyndon Antoine Vincent Darius Tillman Thomas Wendell Rennie Michael Mark Jake Rennie Herbert Blaize Alleyne Lett Anthony Modeste Johnathan Steele Kwasi Paul Richard Britton Devon Roberts Bralon Taplin Walt Williams Desmond Noel Sir Galba Roland Bhola Lancaster Joseph Mighty Sparrow Lamuel A. Stanislaus Andray Baptiste Alister Hughes Jason James Finley Jeffrey Fitzroy Bedeau Anthony Augustine Omar Hughes Eric Gairy Craig Rocastle Bernard Coard Andre Winner Esau Simpson Kevin Edwards Kithson Bain Nicholas Brathwaite Otis Roberts Eric George Shanon Phillip Peter David Tony Bedeau
Mighty Sparrow, Paul Williams, David Cyrus, Kwan Baptiste, Jake Rennie, Sir Galba, Eric George, Patrick Modeste, Otis Roberts and Herbert Blaize are a citizen of Grenada and have the gender as male
Mighty Sparrow Paul Williams David Cyrus Kwan Baptiste Jake Rennie Sir Galba Eric George Patrick Modeste Otis Roberts Herbert Blaize
action filter_type
action intersection
action find_reverse
entity Grenada
relation country of citizenship
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'country of citizenship', 'Grenada'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:common_name . ?g property:gender resource:male . ?g property:country_of_citizenship resource:Grenada }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q1129422
P1303
Q34379 Q502895
USER
Which musical instruments are played by lesser number of people than morin khuur ?
(c(Q502895),P1303,c(Q34379))
action less
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find_reverse
entity Q1129422
relation P1303
type Q502895
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?m ) AS ?s ) WHERE { ?m property:P1303 ?g . ?g rdf:type ontology:Q34379 . ?m rdf:type ontology:Q502895 } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?a ) WHERE { ?f property:P1303 resource:Q1129422 . ?f rdf:type ontology:Q502895 } } . FILTER ( ?s < ?a ) }
morin khuur
action less
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find_reverse
entity morin khuur
relation instrument
type common name
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?m ) AS ?s ) WHERE { ?m property:instrument ?g . ?g rdf:type ontology:musical_instrument . ?m rdf:type ontology:common_name } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?a ) WHERE { ?f property:instrument resource:morin_khuur . ?f rdf:type ontology:common_name } } . FILTER ( ?s < ?a ) }
[]
musical instrument common name
Q1879664 Q748455 Q173453
SYSTEM
spoon, cajón, wind instrument
Q1879664 Q748455 Q173453
(c(Q502895),P1303,c(Q34379))
action less
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find_reverse
entity Q1129422
relation P1303
type Q502895
[ANSWERS] are played by lesser number of people than morin khuur
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?m ) AS ?s ) WHERE { ?m property:P1303 ?g . ?g rdf:type ontology:Q34379 . ?m rdf:type ontology:Q502895 } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?a ) WHERE { ?f property:P1303 resource:Q1129422 . ?f rdf:type ontology:Q502895 } } . FILTER ( ?s < ?a ) }
spoon cajón wind instrument
Spoon, cajón and wind instrument are played by lesser number of people than morin khuur
spoon cajón wind instrument
action less
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find_reverse
entity morin khuur
relation instrument
type common name
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?m ) AS ?s ) WHERE { ?m property:instrument ?g . ?g rdf:type ontology:musical_instrument . ?m rdf:type ontology:common_name } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?a ) WHERE { ?f property:instrument resource:morin_khuur . ?f rdf:type ontology:common_name } } . FILTER ( ?s < ?a ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q5994
P1303
Q34379 Q502895
USER
And what about piano?
(c(Q502895),P1303,c(Q34379))
action less
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find_reverse
entity Q5994
relation P1303
type Q502895
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?h ) AS ?f ) WHERE { ?h property:P1303 ?e . ?e rdf:type ontology:Q34379 . ?h rdf:type ontology:Q502895 } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?i ) WHERE { ?y property:P1303 resource:Q5994 . ?y rdf:type ontology:Q502895 } } . FILTER ( ?f < ?i ) }
piano
action less
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find_reverse
entity piano
relation instrument
type common name
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?h ) AS ?f ) WHERE { ?h property:instrument ?e . ?e rdf:type ontology:musical_instrument . ?h rdf:type ontology:common_name } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?i ) WHERE { ?y property:instrument resource:piano . ?y rdf:type ontology:common_name } } . FILTER ( ?f < ?i ) }
[]
musical instrument common name
Q1178361 Q81982 Q1759986
SYSTEM
davul, harpsichord, Wurlitzer electric piano
Q80284 Q46185 Q201129 Q424017 Q890073 Q80019 Q1178361 Q2563510 Q604538 Q2660670 Q39777 Q3574843 Q678090 Q81982 Q182718 Q490054 Q873588 Q593995 Q1327500 Q206987 Q1879664 Q189737 Q1759986 Q1798603 Q1099153 Q8338 Q120585 Q713298 Q8371 Q8355 Q1024685 Q213461 Q3382191 Q816793 Q862501 Q213100 Q244976 Q537750 Q626035 Q1179017 Q742180 Q320341 Q1300012 Q1444 Q748455 Q669370 Q290951 Q220971 Q178933 Q16875637 Q790468 Q128309 Q1129422 Q379248 Q726306 Q173453 Q483994 Q744831 Q963150 Q16155191 Q644440 Q1343007 Q11404 Q497224 Q3623688
(c(Q502895),P1303,c(Q34379))
action less
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find_reverse
entity Q5994
relation P1303
type Q502895
[ANSWERS]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?h ) AS ?f ) WHERE { ?h property:P1303 ?e . ?e rdf:type ontology:Q34379 . ?h rdf:type ontology:Q502895 } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?i ) WHERE { ?y property:P1303 resource:Q5994 . ?y rdf:type ontology:Q502895 } } . FILTER ( ?f < ?i ) }
viola bass guitar lyre acoustic bass guitar Body percussion double bass davul steel-string acoustic guitar Temple block Irish bouzouki maraca tonbak Twelve-string guitar harpsichord Nyckelharpa Ondioline Jinghu player piano electronic musical instrument vibraphone spoon 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 cajón gusle Kamancheh marimba Hardanger fiddle transverse flute baritone horn drum kit morin khuur Timbales erhu wind instrument Kazoo Mridangam tenor guitar Saraswati veena Lap steel guitar electronic keyboard drum Kayamb Paraguayan harp
davul harpsichord Wurlitzer electric piano
action less
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find_reverse
entity piano
relation instrument
type common name
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?h ) AS ?f ) WHERE { ?h property:instrument ?e . ?e rdf:type ontology:musical_instrument . ?h rdf:type ontology:common_name } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?i ) WHERE { ?y property:instrument resource:piano . ?y rdf:type ontology:common_name } } . FILTER ( ?f < ?i ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P127
Q1048835 Q4830453 Q2668072
USER
Which political territories own max number of business enterprises and collections ?
(c(Q4830453)|c(Q2668072),P127,c(Q1048835))
action argmax
action union
action find_reverse_tuple_counts
relation P127
type Q1048835
type Q4830453
action find_reverse_tuple_counts
relation P127
type Q1048835
type Q2668072
[[{'concept': 'Q4830453'}, {'concept': 'Q2668072'}], 'P127', {'concept': 'Q1048835'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( MAX ( ?x ) AS ?w ) { SELECT DISTINCT ?m ( COUNT ( ?e ) AS ?x ) WHERE { { ?e property:P127 ?m . ?m rdf:type ontology:Q1048835 . ?e rdf:type ontology:Q2668072 } UNION { ?m rdf:type ontology:Q1048835 . ?e rdf:type ontology:Q4830453 . ?e property:P127 ?m } } GROUP BY ?m } } . { SELECT DISTINCT ?g ( COUNT ( ?r ) AS ?n ) WHERE { ?r rdf:type ?d . VALUES ( ?d ) { ( ontology:Q4830453 ) ( ontology:Q2668072 ) } } GROUP BY ?g } . FILTER ( ?n = ?w ) }
action argmax
action union
action find_reverse_tuple_counts
relation owned by
type political territorial entity
type business enterprise
action find_reverse_tuple_counts
relation owned by
type political territorial entity
type collection
[[{'concept': 'business enterprise'}, {'concept': 'collection'}], 'owned by', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( MAX ( ?x ) AS ?w ) { SELECT DISTINCT ?m ( COUNT ( ?e ) AS ?x ) WHERE { { ?e property:owned_by ?m . ?m rdf:type ontology:political_territorial_entity . ?e rdf:type ontology:collection } UNION { ?m rdf:type ontology:political_territorial_entity . ?e rdf:type ontology:business_enterprise . ?e property:owned_by ?m } } GROUP BY ?m } } . { SELECT DISTINCT ?g ( COUNT ( ?r ) AS ?n ) WHERE { ?r rdf:type ?d . VALUES ( ?d ) { ( ontology:business_enterprise ) ( ontology:collection ) } } GROUP BY ?g } . FILTER ( ?n = ?w ) }
[]
political territorial entity business enterprise collection
Q9331
SYSTEM
Flemish Community
Q9331
(c(Q4830453)|c(Q2668072),P127,c(Q1048835))
action argmax
action union
action find_reverse_tuple_counts
relation P127
type Q1048835
type Q4830453
action find_reverse_tuple_counts
relation P127
type Q1048835
type Q2668072
[ANSWER] own max number of business enterprises and collections
[[{'concept': 'Q4830453'}, {'concept': 'Q2668072'}], 'P127', {'concept': 'Q1048835'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( MAX ( ?x ) AS ?w ) { SELECT DISTINCT ?m ( COUNT ( ?e ) AS ?x ) WHERE { { ?e property:P127 ?m . ?m rdf:type ontology:Q1048835 . ?e rdf:type ontology:Q2668072 } UNION { ?m rdf:type ontology:Q1048835 . ?e rdf:type ontology:Q4830453 . ?e property:P127 ?m } } GROUP BY ?m } } . { SELECT DISTINCT ?g ( COUNT ( ?r ) AS ?n ) WHERE { ?r rdf:type ?d . VALUES ( ?d ) { ( ontology:Q4830453 ) ( ontology:Q2668072 ) } } GROUP BY ?g } . FILTER ( ?n = ?w ) }
Flemish Community
Flemish Community own max number of business enterprises and collections
Flemish Community
action argmax
action union
action find_reverse_tuple_counts
relation owned by
type political territorial entity
type business enterprise
action find_reverse_tuple_counts
relation owned by
type political territorial entity
type collection
[[{'concept': 'business enterprise'}, {'concept': 'collection'}], 'owned by', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( MAX ( ?x ) AS ?w ) { SELECT DISTINCT ?m ( COUNT ( ?e ) AS ?x ) WHERE { { ?e property:owned_by ?m . ?m rdf:type ontology:political_territorial_entity . ?e rdf:type ontology:collection } UNION { ?m rdf:type ontology:political_territorial_entity . ?e rdf:type ontology:business_enterprise . ?e property:owned_by ?m } } GROUP BY ?m } } . { SELECT DISTINCT ?g ( COUNT ( ?r ) AS ?n ) WHERE { ?r rdf:type ?d . VALUES ( ?d ) { ( ontology:business_enterprise ) ( ontology:collection ) } } GROUP BY ?g } . FILTER ( ?n = ?w ) }
[]