Simple Question (Direct)
Simple Question
Q3482021
P106
Q12737077
USER
What does Yannick Rymenants do for a living ?
(Q3482021,P106,c(Q12737077))
action filter_type
action find
entity Q3482021
relation P106
type Q12737077
['Q3482021', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?e WHERE { resource:Q3482021 property:P106 ?e . ?e rdf:type ontology:Q12737077 }
Yannick Rymenants
action filter_type
action find
entity Yannick Rymenants
relation occupation
type occupation
['Yannick Rymenants', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?e WHERE { resource:Yannick_Rymenants property:occupation ?e . ?e rdf:type ontology:occupation }
[]
occupation
Q937857
SYSTEM
association football player
Q937857
(Q3482021,P106,c(Q12737077))
action filter_type
action find
entity Q3482021
relation P106
type Q12737077
[ANSWER] Yannick Rymenants does for a living
['Q3482021', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?e WHERE { resource:Q3482021 property:P106 ?e . ?e rdf:type ontology:Q12737077 }
association football player
Association football player Yannick Rymenants does for a living
association football player
action filter_type
action find
entity Yannick Rymenants
relation occupation
type occupation
['Yannick Rymenants', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?e WHERE { resource:Yannick_Rymenants property:occupation ?e . ?e rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3482021
P21
Q290
USER
Which sex does that person possess ?
(Q937857,P21,c(Q290))
action filter_type
action find
entity Q3482021
relation P21
type Q290
['Q937857', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q290 . resource:Q3482021 property:P21 ?v }
Yannick Rymenants
action filter_type
action find
entity Yannick Rymenants
relation gender
type sex
['association football player', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:sex . resource:Yannick_Rymenants property:gender ?v }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q937857,P21,c(Q290))
action filter_type
action find
entity Q3482021
relation P21
type Q290
That person possesses a [ANSWER]
['Q937857', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q290 . resource:Q3482021 property:P21 ?v }
male
That person possesses a male
male
action filter_type
action find
entity Yannick Rymenants
relation gender
type sex
['association football player', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:sex . resource:Yannick_Rymenants property:gender ?v }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P21
Q1462606 Q41176
USER
How many werewolvess in Harry Potter and buildings are a that sex ?
(c(Q1462606),P21,Q6581097) (c(Q41176),P21,Q6581097) (c(Q1462606),P21,Q6581097) (c(Q41176),P21,Q6581097)
action count
action union
action filter_type
action find_reverse
entity Q6581097
relation P21
type Q1462606
action filter_type
action find_reverse
entity Q6581097
relation P21
type Q41176
[{'concept': 'Q1462606'}, 'P21', 'Q6581097'] [{'concept': 'Q41176'}, 'P21', 'Q6581097'] [{'concept': 'Q1462606'}, 'P21', 'Q6581097'] [{'concept': 'Q41176'}, 'P21', 'Q6581097']
SELECT DISTINCT ( COUNT ( ?r ) AS ?n ) WHERE { ?r rdf:type ?v . VALUES ( ?v ) { ( ontology:Q1462606 ) ( ontology:Q41176 ) } }
action count
action union
action filter_type
action find_reverse
entity male
relation gender
type werewolves in Harry Potter
action filter_type
action find_reverse
entity male
relation gender
type building
[{'concept': 'werewolves in Harry Potter'}, 'gender', 'male'] [{'concept': 'building'}, 'gender', 'male'] [{'concept': 'werewolves in Harry Potter'}, 'gender', 'male'] [{'concept': 'building'}, 'gender', 'male']
SELECT DISTINCT ( COUNT ( ?r ) AS ?n ) WHERE { ?r rdf:type ?v . VALUES ( ?v ) { ( ontology:werewolves_in_Harry_Potter ) ( ontology:building ) } }
[]
werewolves in Harry Potter building
SYSTEM
2 werewolvess in Harry Potter and 1 buildings
Q3278363 Q9011387 Q208657
(c(Q1462606),P21,Q6581097) (c(Q41176),P21,Q6581097) (c(Q1462606),P21,Q6581097) (c(Q41176),P21,Q6581097)
action count
action union
action filter_type
action find_reverse
entity Q6581097
relation P21
type Q1462606
action filter_type
action find_reverse
entity Q6581097
relation P21
type Q41176
[ANSWER]
[{'concept': 'Q1462606'}, 'P21', 'Q6581097'] [{'concept': 'Q41176'}, 'P21', 'Q6581097'] [{'concept': 'Q1462606'}, 'P21', 'Q6581097'] [{'concept': 'Q41176'}, 'P21', 'Q6581097']
SELECT DISTINCT ( COUNT ( ?r ) AS ?n ) WHERE { ?r rdf:type ?v . VALUES ( ?v ) { ( ontology:Q1462606 ) ( ontology:Q41176 ) } }
Fenrir Greyback Jean Leon Remus Lupin
2 werewolvess in Harry Potter and 1 buildings
action count
action union
action filter_type
action find_reverse
entity male
relation gender
type werewolves in Harry Potter
action filter_type
action find_reverse
entity male
relation gender
type building
[{'concept': 'werewolves in Harry Potter'}, 'gender', 'male'] [{'concept': 'building'}, 'gender', 'male'] [{'concept': 'werewolves in Harry Potter'}, 'gender', 'male'] [{'concept': 'building'}, 'gender', 'male']
SELECT DISTINCT ( COUNT ( ?r ) AS ?n ) WHERE { ?r rdf:type ?v . VALUES ( ?v ) { ( ontology:werewolves_in_Harry_Potter ) ( ontology:building ) } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q19632677 Q3482021
P27 P17
Q15617994
USER
Which administrative territories are Yannick Rymenants a civilian of or are Vennenlaan situated in ?
OR((Q3482021,P27,c(Q15617994)), (Q19632677,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q3482021
relation P27
action find
entity Q19632677
relation P17
type Q15617994
{'OR': [['Q3482021', 'P27', {'concept': 'Q15617994'}], ['Q19632677', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Q3482021 property:P27 ?n } UNION { resource:Q19632677 property:P17 ?n } } . ?n rdf:type ontology:Q15617994 }
Vennenlaan Yannick Rymenants
action filter_type
action union
action find
entity Yannick Rymenants
relation country of citizenship
action find
entity Vennenlaan
relation country
type designation for an administrative territorial entity
{'OR': [['Yannick Rymenants', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Vennenlaan', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Yannick_Rymenants property:country_of_citizenship ?n } UNION { resource:Vennenlaan property:country ?n } } . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q31 Q55
SYSTEM
Belgium, Netherlands
Q31 Q55
OR((Q3482021,P27,c(Q15617994)), (Q19632677,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q3482021
relation P27
action find
entity Q19632677
relation P17
type Q15617994
[ANSWERS] are Yannick Rymenants a civilian of or are Vennenlaan situated in
{'OR': [['Q3482021', 'P27', {'concept': 'Q15617994'}], ['Q19632677', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Q3482021 property:P27 ?n } UNION { resource:Q19632677 property:P17 ?n } } . ?n rdf:type ontology:Q15617994 }
Belgium Netherlands
Belgium and Netherlands are Yannick Rymenants a civilian of or are Vennenlaan situated in
Belgium Netherlands
action filter_type
action union
action find
entity Yannick Rymenants
relation country of citizenship
action find
entity Vennenlaan
relation country
type designation for an administrative territorial entity
{'OR': [['Yannick Rymenants', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Vennenlaan', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Yannick_Rymenants property:country_of_citizenship ?n } UNION { resource:Vennenlaan property:country ?n } } . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q510373
P921
Q12737077 Q191067 Q2342494
USER
Which occupations were the main subjects of more number of articles and collectables 's work than Lord High Steward ?
(c(Q191067)|c(Q2342494),P921,c(Q12737077))
action greater
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q191067
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q510373
relation P921
type Q191067
type Q2342494
[[{'concept': 'Q191067'}, {'concept': 'Q2342494'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?r ) ?g WHERE { { ?l property:P921 ?g . ?g rdf:type ontology:Q12737077 . ?l rdf:type ontology:Q2342494 } UNION { ?l rdf:type ontology:Q191067 . ?g rdf:type ontology:Q12737077 . ?l property:P921 ?g } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?z ) WHERE { ?n property:P921 resource:Q510373 . { VALUES ( ?q ) { ( ontology:Q191067 ) ( ontology:Q2342494 ) } . ?n rdf:type ?q } } } . FILTER ( ?r > ?z ) }
Lord High Steward
action greater
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type article
action find_reverse_tuple_counts
relation main subject
type occupation
type collectable
action count
action filter_multi_types
action find_reverse
entity Lord High Steward
relation main subject
type article
type collectable
[[{'concept': 'article'}, {'concept': 'collectable'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?r ) ?g WHERE { { ?l property:main_subject ?g . ?g rdf:type ontology:occupation . ?l rdf:type ontology:collectable } UNION { ?l rdf:type ontology:article . ?g rdf:type ontology:occupation . ?l property:main_subject ?g } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?z ) WHERE { ?n property:main_subject resource:Lord_High_Steward . { VALUES ( ?q ) { ( ontology:article ) ( ontology:collectable ) } . ?n rdf:type ?q } } } . FILTER ( ?r > ?z ) }
[]
occupation article collectable
Q937857 Q16746569 Q39631
SYSTEM
association football player, high school student, physician
Q39631 Q11631 Q937857 Q16746569
(c(Q191067)|c(Q2342494),P921,c(Q12737077))
action greater
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q191067
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q510373
relation P921
type Q191067
type Q2342494
The [ANSWERS] were the main subjects of more number of articles and collectables 's work than Lord High Steward
[[{'concept': 'Q191067'}, {'concept': 'Q2342494'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?r ) ?g WHERE { { ?l property:P921 ?g . ?g rdf:type ontology:Q12737077 . ?l rdf:type ontology:Q2342494 } UNION { ?l rdf:type ontology:Q191067 . ?g rdf:type ontology:Q12737077 . ?l property:P921 ?g } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?z ) WHERE { ?n property:P921 resource:Q510373 . { VALUES ( ?q ) { ( ontology:Q191067 ) ( ontology:Q2342494 ) } . ?n rdf:type ?q } } } . FILTER ( ?r > ?z ) }
physician astronaut association football player high school student
The association football player, high school student and physician were the main subjects of more number of articles and collectables 's work than Lord High Steward
association football player high school student physician
action greater
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type article
action find_reverse_tuple_counts
relation main subject
type occupation
type collectable
action count
action filter_multi_types
action find_reverse
entity Lord High Steward
relation main subject
type article
type collectable
[[{'concept': 'article'}, {'concept': 'collectable'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?r ) ?g WHERE { { ?l property:main_subject ?g . ?g rdf:type ontology:occupation . ?l rdf:type ontology:collectable } UNION { ?l rdf:type ontology:article . ?g rdf:type ontology:occupation . ?l property:main_subject ?g } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?z ) WHERE { ?n property:main_subject resource:Lord_High_Steward . { VALUES ( ?q ) { ( ontology:article ) ( ontology:collectable ) } . ?n rdf:type ?q } } } . FILTER ( ?r > ?z ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q212238
P921
Q12737077 Q191067 Q2342494
USER
And what about civil servant?
(c(Q191067)|c(Q2342494),P921,c(Q12737077))
action greater
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q191067
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q212238
relation P921
type Q191067
type Q2342494
[[{'concept': 'Q191067'}, {'concept': 'Q2342494'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?o ) WHERE { ?n property:P921 resource:Q212238 . { { ?n rdf:type ontology:Q191067 } UNION { ?n rdf:type ontology:Q2342494 } } } } . FILTER ( ?s > ?o ) . { SELECT DISTINCT ?u ( COUNT ( ?l ) AS ?s ) WHERE { { ?l property:P921 ?u . ?u rdf:type ontology:Q12737077 . ?l rdf:type ontology:Q191067 } UNION { ?l property:P921 ?u . ?l rdf:type ontology:Q2342494 . ?u rdf:type ontology:Q12737077 } } GROUP BY ?u } }
civil servant
action greater
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type article
action find_reverse_tuple_counts
relation main subject
type occupation
type collectable
action count
action filter_multi_types
action find_reverse
entity civil servant
relation main subject
type article
type collectable
[[{'concept': 'article'}, {'concept': 'collectable'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?o ) WHERE { ?n property:main_subject resource:civil_servant . { { ?n rdf:type ontology:article } UNION { ?n rdf:type ontology:collectable } } } } . FILTER ( ?s > ?o ) . { SELECT DISTINCT ?u ( COUNT ( ?l ) AS ?s ) WHERE { { ?l property:main_subject ?u . ?u rdf:type ontology:occupation . ?l rdf:type ontology:article } UNION { ?l property:main_subject ?u . ?l rdf:type ontology:collectable . ?u rdf:type ontology:occupation } } GROUP BY ?u } }
[]
occupation article collectable
Q316070 Q182436 Q42973
SYSTEM
Fletcher Christian, librarian, architect
Q172907 Q39631 Q11631 Q774306 Q83307 Q4610556 Q18145518 Q82955 Q730242 Q42973 Q937857 Q9402 Q43845 Q316070 Q29182 Q510373 Q131524 Q14373094 Q152002 Q18220900 Q16746569 Q16003605 Q732358 Q49757 Q1238570 Q182436 Q2259532
(c(Q191067)|c(Q2342494),P921,c(Q12737077))
action greater
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q191067
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q212238
relation P921
type Q191067
type Q2342494
[ANSWERS]
[[{'concept': 'Q191067'}, {'concept': 'Q2342494'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?o ) WHERE { ?n property:P921 resource:Q212238 . { { ?n rdf:type ontology:Q191067 } UNION { ?n rdf:type ontology:Q2342494 } } } } . FILTER ( ?s > ?o ) . { SELECT DISTINCT ?u ( COUNT ( ?l ) AS ?s ) WHERE { { ?l property:P921 ?u . ?u rdf:type ontology:Q12737077 . ?l rdf:type ontology:Q191067 } UNION { ?l property:P921 ?u . ?l rdf:type ontology:Q2342494 . ?u rdf:type ontology:Q12737077 } } GROUP BY ?u } }
praetor physician astronaut surgeon minister model Member of the New Zealand House of Representatives politician test pilot architect association football player ninja businessperson Fletcher Christian bishop Lord High Steward entrepreneur rugby league player pastor Member of the South Australian House of Assembly high school student elementary school student Nomarch poet political scientist librarian cleric
Fletcher Christian librarian architect
action greater
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type article
action find_reverse_tuple_counts
relation main subject
type occupation
type collectable
action count
action filter_multi_types
action find_reverse
entity civil servant
relation main subject
type article
type collectable
[[{'concept': 'article'}, {'concept': 'collectable'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?o ) WHERE { ?n property:main_subject resource:civil_servant . { { ?n rdf:type ontology:article } UNION { ?n rdf:type ontology:collectable } } } } . FILTER ( ?s > ?o ) . { SELECT DISTINCT ?u ( COUNT ( ?l ) AS ?s ) WHERE { { ?l property:main_subject ?u . ?u rdf:type ontology:occupation . ?l rdf:type ontology:article } UNION { ?l property:main_subject ?u . ?l rdf:type ontology:collectable . ?u rdf:type ontology:occupation } } GROUP BY ?u } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q576760 Q937857
P425 P641
Q349
USER
Which sports are associated with the field of occupation association football player or did US Tshinkunku participate in ?
OR((Q937857,P425,c(Q349)), (Q576760,P641,c(Q349)))
action filter_type
action union
action find
entity Q937857
relation P425
action find
entity Q576760
relation P641
type Q349
{'OR': [['Q937857', 'P425', {'concept': 'Q349'}], ['Q576760', 'P641', {'concept': 'Q349'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Q937857 property:P425 ?e } UNION { resource:Q576760 property:P641 ?e } } . ?e rdf:type ontology:Q349 }
US Tshinkunku association football player
action filter_type
action union
action find
entity association football player
relation field of this occupation
action find
entity US Tshinkunku
relation sport
type sport
{'OR': [['association football player', 'field of this occupation', {'concept': 'sport'}], ['US Tshinkunku', 'sport', {'concept': 'sport'}]]}
SELECT DISTINCT ?e WHERE { { { resource:association_football_player property:field_of_this_occupation ?e } UNION { resource:US_Tshinkunku property:sport ?e } } . ?e rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
OR((Q937857,P425,c(Q349)), (Q576760,P641,c(Q349)))
action filter_type
action union
action find
entity Q937857
relation P425
action find
entity Q576760
relation P641
type Q349
Teams [ANSWER] is associated with the field of occupation [ANSWER] player or did US Tshinkunku participate in
{'OR': [['Q937857', 'P425', {'concept': 'Q349'}], ['Q576760', 'P641', {'concept': 'Q349'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Q937857 property:P425 ?e } UNION { resource:Q576760 property:P641 ?e } } . ?e rdf:type ontology:Q349 }
association football
Teams association football is associated with the field of occupation association football player or did US Tshinkunku participate in
association football
action filter_type
action union
action find
entity association football player
relation field of this occupation
action find
entity US Tshinkunku
relation sport
type sport
{'OR': [['association football player', 'field of this occupation', {'concept': 'sport'}], ['US Tshinkunku', 'sport', {'concept': 'sport'}]]}
SELECT DISTINCT ?e WHERE { { { resource:association_football_player property:field_of_this_occupation ?e } UNION { resource:US_Tshinkunku property:sport ?e } } . ?e rdf:type ontology:sport }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2736
P361
Q623109
USER
Which sports leagues are a component of that sport ?
(c(Q623109),P361,Q2736)
action filter_type
action find_reverse
entity Q2736
relation P361
type Q623109
[{'concept': 'Q623109'}, 'P361', 'Q2736']
SELECT DISTINCT ?p WHERE { ?p property:P361 resource:Q2736 . ?p rdf:type ontology:Q623109 }
association football
action filter_type
action find_reverse
entity association football
relation part of
type sports league
[{'concept': 'sports league'}, 'part of', 'association football']
SELECT DISTINCT ?p WHERE { ?p property:part_of resource:association_football . ?p rdf:type ontology:sports_league }
[]
sports league
Q1061291 Q206813
SYSTEM
Championnat de France amateur, Campeonato Brasileiro Série A
Q1061291 Q206813
(c(Q623109),P361,Q2736)
action filter_type
action find_reverse
entity Q2736
relation P361
type Q623109
[ANSWERS] are a component of that sport
[{'concept': 'Q623109'}, 'P361', 'Q2736']
SELECT DISTINCT ?p WHERE { ?p property:P361 resource:Q2736 . ?p rdf:type ontology:Q623109 }
Championnat de France amateur Campeonato Brasileiro Série A
Championnat de France amateur and Campeonato Brasileiro Série A are a component of that sport
Championnat de France amateur Campeonato Brasileiro Série A
action filter_type
action find_reverse
entity association football
relation part of
type sports league
[{'concept': 'sports league'}, 'part of', 'association football']
SELECT DISTINCT ?p WHERE { ?p property:part_of resource:association_football . ?p rdf:type ontology:sports_league }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P118
Q623109 Q847017
USER
Which sports clubs play in min number of sports leagues ?
(c(Q847017),P118,c(Q623109))
action argmin
action find_tuple_counts
relation P118
type Q847017
type Q623109
[{'concept': 'Q847017'}, 'P118', {'concept': 'Q623109'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( MIN ( ?i ) AS ?t ) { SELECT DISTINCT ?y ( COUNT ( ?x ) AS ?i ) WHERE { ?y property:P118 ?x . ?y rdf:type ontology:Q847017 . ?x rdf:type ontology:Q623109 } GROUP BY ?y } } . { SELECT DISTINCT ?e ( COUNT ( ?p ) AS ?z ) WHERE { ?e property:P118 ?p . ?e rdf:type ontology:Q847017 . ?p rdf:type ontology:Q623109 } GROUP BY ?e } . FILTER ( ?z = ?t ) }
action argmin
action find_tuple_counts
relation league
type sports club
type sports league
[{'concept': 'sports club'}, 'league', {'concept': 'sports league'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( MIN ( ?i ) AS ?t ) { SELECT DISTINCT ?y ( COUNT ( ?x ) AS ?i ) WHERE { ?y property:league ?x . ?y rdf:type ontology:sports_club . ?x rdf:type ontology:sports_league } GROUP BY ?y } } . { SELECT DISTINCT ?e ( COUNT ( ?p ) AS ?z ) WHERE { ?e property:league ?p . ?e rdf:type ontology:sports_club . ?p rdf:type ontology:sports_league } GROUP BY ?e } . FILTER ( ?z = ?t ) }
[]
sports league sports club
Q3618237 Q12069029 Q4653365
SYSTEM
Anorthosis Famagusta Volley (men), Nea Salamis Famagusta VC, APOEL V.C.
Q2247534 Q1088979 Q18640 Q9137095 Q4161796 Q6379178 Q5691054 Q11037 Q3511893 Q3206271 Q3459711 Q6418592 Q2887705 Q1647621 Q1639984 Q3943360 Q3747539 Q2927993 Q170703 Q240444 Q1150594 Q1639664 Q942002 Q5400871 Q27614427 Q6418608 Q4784341 Q1252061 Q1133522 Q3601128 Q2479159 Q5366837 Q1484585 Q1152501 Q6418624 Q6399519 Q25708263 Q4860574 Q1653389 Q7258850 Q4335719 Q3618237 Q5207489 Q3626748 Q3639929 Q5424816 Q3152852 Q6418651 Q2277982 Q3627533 Q9213205 Q6418637 Q5528954 Q620650 Q7579558 Q3859986 Q4502973 Q2246155 Q5551459 Q384540 Q6416485 Q7419312 Q7231995 Q1154284 Q6418703 Q12069029 Q5887749 Q27614315 Q1639656 Q728251 Q5587532 Q3930988 Q6138227 Q12883303 Q478436 Q1133676 Q957401 Q26403763 Q2713901 Q1773169 Q923154 Q27614204 Q4704695 Q8345019 Q1088075 Q214978 Q6418679 Q1028908 Q5565122 Q4653365 Q5247410 Q7451662 Q3063262 Q5749497 Q3880904 Q3774306 Q5452150 Q2664238 Q2356842 Q1124238 Q671396 Q4913733 Q7179113 Q5443958 Q3812098 Q27614394 Q4816 Q7248260 Q5510544 Q15799 Q22812246 Q2246067 Q3900679 Q2288432 Q963242 Q2346620 Q369719 Q2287770 Q1347994 Q6890568 Q4537 Q6418572 Q5427172 Q6875052 Q1618828 Q7382749 Q3841690 Q668531 Q1055661 Q1323854 Q6418664 Q6418695 Q27614546
(c(Q847017),P118,c(Q623109))
action argmin
action find_tuple_counts
relation P118
type Q847017
type Q623109
[ANSWERS] play in min number of sports leagues
[{'concept': 'Q847017'}, 'P118', {'concept': 'Q623109'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( MIN ( ?i ) AS ?t ) { SELECT DISTINCT ?y ( COUNT ( ?x ) AS ?i ) WHERE { ?y property:P118 ?x . ?y rdf:type ontology:Q847017 . ?x rdf:type ontology:Q623109 } GROUP BY ?y } } . { SELECT DISTINCT ?e ( COUNT ( ?p ) AS ?z ) WHERE { ?e property:P118 ?p . ?e rdf:type ontology:Q847017 . ?p rdf:type ontology:Q623109 } GROUP BY ?e } . FILTER ( ?z = ?t ) }
Xota FS Marca Futsal Club de Gimnasia y Esgrima La Plata AEK Karava-Lampousa Dinamo-2 Moscow Kaveh Zarand Kerman FSC Sadra Shiraz FSC Olympique Lyonnais F.C. Nacional Real Rieti Calcio a 5 S.L. Olivais Rah Sari FSC Napoli Vesevo Nidaros Futsal Città di Montesilvano Calcio a 5 S.S. Lazio Calcio a 5 Foolad Mahan FSC Mississippi State Bulldogs Boca Juniors FC Terek Grozny MFK Dina Moskva Luparense Calcio a 5 Valencia FS Esteghlal FSC Foinikas Pylas (men) Sherkat Melli Haffari Iran FSC Arash Beton Qazvin FSC Győri ETO Futsal Club AD Fundão ARCD Junqueira Uragan Ivano-Frankivsk Elmo Adab Mashhad FSC MFK Dinamo Moskva Leis 26 Pontevedra FS Shensa Saveh FSC CFS Jumilla Anagennisi Deryneia VC (men) Bargh Shiraz FSC MFC Shakhtar Donetsk Puertollano FS Orbita-ZTMK-ZNU Anorthosis Famagusta Volley (men) Dabiri Novin Tabriz FSC A.S. Augusta CFS Bilbao FC Andorra Futsal Instituto D. João V Shahrdari Saveh FSC Sporting Clube de Portugal Asti Calcio a 5 Giti Pasand Novin Isfahan FSC Shahrdari Tabriz FSC Gaz Khozestan FSC MFK Tyumen Sporting Clube Vila Verde Modicus MFK CSKA Moscow FS Baix Maestrat Ribera Navarra FS Inter FS Kish Air Qom FSC Santa Clara Broncos Portland Pilots Marsanz FS Persepolis FSC Nea Salamis Famagusta VC Homan Saz Khozestan jonob FSC Anagennisi Deryneia VC (women) Arzignano Grifo Boavista F.C. Gostaresh Foolad Tabriz FSC CD Vigo FS Talento Dorado de Itagüí Pafiakos VC (men) Pittsburgh Panthers Castilla-La Mancha FS Numancia CMA Soria United Volleys Rhein-Main S.L. Benfica AE Manacor AR Freixieiro Enosis Neon Paralimni VC Al Rayyan Futsal Team Charlotte 49ers A.S. Roma Futsal Club Atlético Independiente Saba Qom FSC SK Energia Lviv Giti Pasand Isfahan FSC APOEL V.C. Jaén FS Seoul Gwangjin FC Fundação Jorge Antunes Heyat Football Qazvin FSC Odivelas FC Maspalomas FS Firooz Sofeh FSC Santiago Futsal AD Sala 10 Első Beton Szeged MNK Uspinjača Zagreb Bimeh Hadis Qazvin FSC Petroshimi Tabriz FSC Ferdosi Mashhad FSC KMF Marbo Beograd Aris Limassol VC Venezia Calcio a 5 Profile Zali Mashhad FSC Futsal Klub Tirana Club Atlético River Plate Omonoia AC Volleyball Prone Lugo AD Pescara Calcio a 5 FS Marfil Santa Coloma Playas Club Deportivo Castellón FS Iberia Star Gáldar FS Caja Segovia FS FC Barcelona Futsal Moghavemat Shahrekord FSC SWD Powervolleys Düren Tam Iran Khodro Tehran FSC FS Seoul Misagh Tehran FSC KMF Ekonomac Kragujevac Ruta Leonesa FS MVFC Berettyóújfalu FS Cartagena Carnicer Torrejón FS El Pozo Murcia FS Shahid Mansouri Gharchak FSC Labaniyat Arjan Shiraz FSC Marathon Kato Varosion VC (women)
Anorthosis Famagusta Volley (men), Nea Salamis Famagusta VC and APOEL V.C. play in min number of sports leagues
Anorthosis Famagusta Volley (men) Nea Salamis Famagusta VC APOEL V.C.
action argmin
action find_tuple_counts
relation league
type sports club
type sports league
[{'concept': 'sports club'}, 'league', {'concept': 'sports league'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( MIN ( ?i ) AS ?t ) { SELECT DISTINCT ?y ( COUNT ( ?x ) AS ?i ) WHERE { ?y property:league ?x . ?y rdf:type ontology:sports_club . ?x rdf:type ontology:sports_league } GROUP BY ?y } } . { SELECT DISTINCT ?e ( COUNT ( ?p ) AS ?z ) WHERE { ?e property:league ?p . ?e rdf:type ontology:sports_club . ?p rdf:type ontology:sports_league } GROUP BY ?e } . FILTER ( ?z = ?t ) }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q2278840 Q31
P9 P35
Q502895
USER
Which people have the highest formal authority in Belgium or are the sisters of Isabella de Coucy ?
OR((Q31,P35,c(Q502895)), (Q2278840,P9,c(Q502895)))
action filter_type
action union
action find
entity Q31
relation P35
action find
entity Q2278840
relation P9
type Q502895
{'OR': [['Q31', 'P35', {'concept': 'Q502895'}], ['Q2278840', 'P9', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Q31 property:P35 ?h } UNION { resource:Q2278840 property:P9 ?h } } . ?h rdf:type ontology:Q502895 }
Isabella de Coucy Belgium
action filter_type
action union
action find
entity Belgium
relation head of state
action find
entity Isabella de Coucy
relation sister
type common name
{'OR': [['Belgium', 'head of state', {'concept': 'common name'}], ['Isabella de Coucy', 'sister', {'concept': 'common name'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Belgium property:head_of_state ?h } UNION { resource:Isabella_de_Coucy property:sister ?h } } . ?h rdf:type ontology:common_name }
[]
common name
Q12974 Q12971 Q2778853 Q3911 Q12967 Q155004 Q1796668 Q445553 Q1079522 Q2575533
SYSTEM
Some of them are Albert I, Leopold I, Joan of England, Albert II, Leopold II, Philippe of Belgium, Margaret, Countess of Pembroke, Prince Charles, Count of Flanders, Erasme Louis Surlet de Chokier, Mary of Waltham
Q445553 Q12973 Q2575533 Q1079522 Q155004 Q12976 Q1796668 Q12974 Q12971 Q3911 Q12967 Q2778853
OR((Q31,P35,c(Q502895)), (Q2278840,P9,c(Q502895)))
action filter_type
action union
action find
entity Q31
relation P35
action find
entity Q2278840
relation P9
type Q502895
[ANSWERS] have the highest formal authority in Belgium or are the sisters of Isabella de Coucy
{'OR': [['Q31', 'P35', {'concept': 'Q502895'}], ['Q2278840', 'P9', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Q31 property:P35 ?h } UNION { resource:Q2278840 property:P9 ?h } } . ?h rdf:type ontology:Q502895 }
Prince Charles, Count of Flanders Leopold III Mary of Waltham Erasme Louis Surlet de Chokier Philippe of Belgium Baudouin of Belgium Margaret, Countess of Pembroke Albert I Leopold I Albert II Leopold II Joan of England
Albert I, Leopold I, Joan of England, Albert II, Leopold II, Philippe of Belgium, Margaret, Countess of Pembroke, Prince Charles, Count of Flanders, Erasme Louis Surlet de Chokier and Mary of Waltham have the highest formal authority in Belgium or are the sisters of Isabella de Coucy
Albert I Leopold I Joan of England Albert II Leopold II Philippe of Belgium Margaret, Countess of Pembroke Prince Charles, Count of Flanders Erasme Louis Surlet de Chokier Mary of Waltham
action filter_type
action union
action find
entity Belgium
relation head of state
action find
entity Isabella de Coucy
relation sister
type common name
{'OR': [['Belgium', 'head of state', {'concept': 'common name'}], ['Isabella de Coucy', 'sister', {'concept': 'common name'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Belgium property:head_of_state ?h } UNION { resource:Isabella_de_Coucy property:sister ?h } } . ?h rdf:type ontology:common_name }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q379248
P1303
Q34379 Q502895
USER
How many musical instruments are played by greater number of people than Timbales ?
(c(Q502895),P1303,c(Q34379))
action count
action greater
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q379248
relation P1303
type Q34379
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?j ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?f ) AS ?r ) WHERE { ?f property:P1303 ?a . ?f rdf:type ontology:Q502895 . ?a rdf:type ontology:Q34379 } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?c ) WHERE { resource:Q379248 property:P1303 ?m . ?m rdf:type ontology:Q34379 } } . FILTER ( ?r > ?c ) }
Timbales
action count
action greater
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity Timbales
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?j ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?f ) AS ?r ) WHERE { ?f property:instrument ?a . ?f rdf:type ontology:common_name . ?a rdf:type ontology:musical_instrument } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?c ) WHERE { resource:Timbales property:instrument ?m . ?m rdf:type ontology:musical_instrument } } . FILTER ( ?r > ?c ) }
[]
musical instrument common name
SYSTEM
30
Q80284 Q46185 Q201129 Q424017 Q80019 Q2563510 Q5994 Q3574843 Q81982 Q182718 Q206987 Q189737 Q8338 Q8371 Q8355 Q213461 Q3382191 Q862501 Q213100 Q537750 Q626035 Q742180 Q1300012 Q1444 Q220971 Q128309 Q726306 Q483994 Q1343007 Q11404
(c(Q502895),P1303,c(Q34379))
action count
action greater
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q379248
relation P1303
type Q34379
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?j ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?f ) AS ?r ) WHERE { ?f property:P1303 ?a . ?f rdf:type ontology:Q502895 . ?a rdf:type ontology:Q34379 } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?c ) WHERE { resource:Q379248 property:P1303 ?m . ?m rdf:type ontology:Q34379 } } . FILTER ( ?r > ?c ) }
viola bass guitar lyre acoustic bass guitar double bass steel-string acoustic guitar piano tonbak harpsichord Nyckelharpa vibraphone timpani trumpet cello violin harmonium upright piano ondes Martenot tabla Djembe glockenspiel viola d'amore toy piano organ marimba drum kit erhu Kazoo electronic keyboard drum
30
action count
action greater
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity Timbales
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?j ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?f ) AS ?r ) WHERE { ?f property:instrument ?a . ?f rdf:type ontology:common_name . ?a rdf:type ontology:musical_instrument } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?c ) WHERE { resource:Timbales property:instrument ?m . ?m rdf:type ontology:musical_instrument } } . FILTER ( ?r > ?c ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q244976
P1303
Q34379 Q502895
USER
And what about bodhrán?
(c(Q502895),P1303,c(Q34379))
action count
action greater
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q244976
relation P1303
type Q34379
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?a ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?q ) AS ?x ) WHERE { ?q property:P1303 ?c . ?c rdf:type ontology:Q34379 . ?q rdf:type ontology:Q502895 } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?p ) WHERE { ?w rdf:type ontology:Q34379 . resource:Q244976 property:P1303 ?w } } . FILTER ( ?x > ?p ) }
bodhrán
action count
action greater
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity bodhrán
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?a ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?q ) AS ?x ) WHERE { ?q property:instrument ?c . ?c rdf:type ontology:musical_instrument . ?q rdf:type ontology:common_name } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?p ) WHERE { ?w rdf:type ontology:musical_instrument . resource:bodhrán property:instrument ?w } } . FILTER ( ?x > ?p ) }
[]
musical instrument common name
SYSTEM
30
Q80284 Q46185 Q201129 Q424017 Q80019 Q2563510 Q5994 Q3574843 Q81982 Q182718 Q206987 Q189737 Q8338 Q8371 Q8355 Q213461 Q3382191 Q862501 Q213100 Q537750 Q626035 Q742180 Q1300012 Q1444 Q220971 Q128309 Q726306 Q483994 Q1343007 Q11404
(c(Q502895),P1303,c(Q34379))
action count
action greater
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q244976
relation P1303
type Q34379
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?a ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?q ) AS ?x ) WHERE { ?q property:P1303 ?c . ?c rdf:type ontology:Q34379 . ?q rdf:type ontology:Q502895 } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?p ) WHERE { ?w rdf:type ontology:Q34379 . resource:Q244976 property:P1303 ?w } } . FILTER ( ?x > ?p ) }
viola bass guitar lyre acoustic bass guitar double bass steel-string acoustic guitar piano tonbak harpsichord Nyckelharpa vibraphone timpani trumpet cello violin harmonium upright piano ondes Martenot tabla Djembe glockenspiel viola d'amore toy piano organ marimba drum kit erhu Kazoo electronic keyboard drum
30
action count
action greater
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity bodhrán
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?a ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?q ) AS ?x ) WHERE { ?q property:instrument ?c . ?c rdf:type ontology:musical_instrument . ?q rdf:type ontology:common_name } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?p ) WHERE { ?w rdf:type ontology:musical_instrument . resource:bodhrán property:instrument ?w } } . FILTER ( ?x > ?p ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P118
Q623109 Q476028 Q618123
USER
Which sports leagues do around 5 association football clubs or geographical objects contest in ?
(c(Q476028)|c(Q618123),P118,c(Q623109))
action approx
action union
action find_reverse_tuple_counts
relation P118
type Q623109
type Q476028
action find_reverse_tuple_counts
relation P118
type Q623109
type Q618123
value 5
[[{'concept': 'Q476028'}, {'concept': 'Q618123'}], 'P118', {'concept': 'Q623109'}]
SELECT DISTINCT ?t WHERE { FILTER ( ?n = 5 ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?n ) ?t WHERE { ?k rdf:type ?f . VALUES ( ?f ) { ( ontology:Q476028 ) ( ontology:Q618123 ) } } GROUP BY ?t } }
action approx
action union
action find_reverse_tuple_counts
relation league
type sports league
type association football club
action find_reverse_tuple_counts
relation league
type sports league
type geographical object
value 5
[[{'concept': 'association football club'}, {'concept': 'geographical object'}], 'league', {'concept': 'sports league'}]
SELECT DISTINCT ?t WHERE { FILTER ( ?n = 5 ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?n ) ?t WHERE { ?k rdf:type ?f . VALUES ( ?f ) { ( ontology:association_football_club ) ( ontology:geographical_object ) } } GROUP BY ?t } }
[]
sports league association football club geographical object
Q1231117 Q2675688 Q1470401
SYSTEM
Swedish Football Division 2, Eerste Klasse, TFF Third League
Q1231117 Q2675688 Q1470401
(c(Q476028)|c(Q618123),P118,c(Q623109))
action approx
action union
action find_reverse_tuple_counts
relation P118
type Q623109
type Q476028
action find_reverse_tuple_counts
relation P118
type Q623109
type Q618123
value 5
[ANSWERS] around 5 association football clubs or geographical objects contest in
[[{'concept': 'Q476028'}, {'concept': 'Q618123'}], 'P118', {'concept': 'Q623109'}]
SELECT DISTINCT ?t WHERE { FILTER ( ?n = 5 ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?n ) ?t WHERE { ?k rdf:type ?f . VALUES ( ?f ) { ( ontology:Q476028 ) ( ontology:Q618123 ) } } GROUP BY ?t } }
Swedish Football Division 2 Eerste Klasse TFF Third League
Swedish Football Division 2, Eerste Klasse and TFF Third League around 5 association football clubs or geographical objects contest in
Swedish Football Division 2 Eerste Klasse TFF Third League
action approx
action union
action find_reverse_tuple_counts
relation league
type sports league
type association football club
action find_reverse_tuple_counts
relation league
type sports league
type geographical object
value 5
[[{'concept': 'association football club'}, {'concept': 'geographical object'}], 'league', {'concept': 'sports league'}]
SELECT DISTINCT ?t WHERE { FILTER ( ?n = 5 ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?n ) ?t WHERE { ?k rdf:type ?f . VALUES ( ?f ) { ( ontology:association_football_club ) ( ontology:geographical_object ) } } GROUP BY ?t } }
[]