Simple Question (Direct)
Simple Question
Q68525
P21
Q290
USER
What is the sex of Stephan Cohn-Vossen ?
(Q68525,P21,c(Q290))
action filter_type
action find
entity Q68525
relation P21
type Q290
['Q68525', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q290 . resource:Q68525 property:P21 ?w }
Stephan Cohn-Vossen
action filter_type
action find
entity Stephan Cohn-Vossen
relation gender
type sex
['Stephan Cohn-Vossen', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:sex . resource:Stephan_Cohn-Vossen property:gender ?w }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q68525,P21,c(Q290))
action filter_type
action find
entity Q68525
relation P21
type Q290
The sex of Stephan Cohn- Vossen is the [ANSWER]
['Q68525', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q290 . resource:Q68525 property:P21 ?w }
male
The sex of Stephan Cohn- Vossen is the male
male
action filter_type
action find
entity Stephan Cohn-Vossen
relation gender
type sex
['Stephan Cohn-Vossen', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:sex . resource:Stephan_Cohn-Vossen property:gender ?w }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q68525
P19
Q486972
USER
Which human settlement was that person born in ?
(Q6581097,P19,c(Q486972))
action filter_type
action find
entity Q68525
relation P19
type Q486972
['Q6581097', 'P19', {'concept': 'Q486972'}]
SELECT DISTINCT ?x WHERE { resource:Q68525 property:P19 ?x . ?x rdf:type ontology:Q486972 }
Stephan Cohn-Vossen
action filter_type
action find
entity Stephan Cohn-Vossen
relation place of birth
type human settlement
['male', 'place of birth', {'concept': 'human settlement'}]
SELECT DISTINCT ?x WHERE { resource:Stephan_Cohn-Vossen property:place_of_birth ?x . ?x rdf:type ontology:human_settlement }
[]
human settlement
Q1799
SYSTEM
Wrocław
Q1799
(Q6581097,P19,c(Q486972))
action filter_type
action find
entity Q68525
relation P19
type Q486972
That person was born in [ANSWER]
['Q6581097', 'P19', {'concept': 'Q486972'}]
SELECT DISTINCT ?x WHERE { resource:Q68525 property:P19 ?x . ?x rdf:type ontology:Q486972 }
Wrocław
That person was born in Wrocław
Wrocław
action filter_type
action find
entity Stephan Cohn-Vossen
relation place of birth
type human settlement
['male', 'place of birth', {'concept': 'human settlement'}]
SELECT DISTINCT ?x WHERE { resource:Stephan_Cohn-Vossen property:place_of_birth ?x . ?x rdf:type ontology:human_settlement }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P159
Q4830453 Q163740
USER
How many business enterprises and nonprofit organizations have HQ at that human settlement ?
(c(Q4830453),P159,Q1799) (c(Q163740),P159,Q1799) (c(Q4830453),P159,Q1799) (c(Q163740),P159,Q1799)
action count
action union
action filter_type
action find_reverse
entity Q1799
relation P159
type Q4830453
action filter_type
action find_reverse
entity Q1799
relation P159
type Q163740
[{'concept': 'Q4830453'}, 'P159', 'Q1799'] [{'concept': 'Q163740'}, 'P159', 'Q1799'] [{'concept': 'Q4830453'}, 'P159', 'Q1799'] [{'concept': 'Q163740'}, 'P159', 'Q1799']
SELECT DISTINCT ( COUNT ( ?b ) AS ?n ) WHERE { { ?b rdf:type ontology:Q4830453 . ?b property:P159 resource:Q1799 } UNION { ?b property:P159 resource:Q1799 . ?b rdf:type ontology:Q163740 } }
action count
action union
action filter_type
action find_reverse
entity Wrocław
relation headquarters location
type business enterprise
action filter_type
action find_reverse
entity Wrocław
relation headquarters location
type nonprofit organization
[{'concept': 'business enterprise'}, 'headquarters location', 'Wrocław'] [{'concept': 'nonprofit organization'}, 'headquarters location', 'Wrocław'] [{'concept': 'business enterprise'}, 'headquarters location', 'Wrocław'] [{'concept': 'nonprofit organization'}, 'headquarters location', 'Wrocław']
SELECT DISTINCT ( COUNT ( ?b ) AS ?n ) WHERE { { ?b rdf:type ontology:business_enterprise . ?b property:headquarters_location resource:Wrocław } UNION { ?b property:headquarters_location resource:Wrocław . ?b rdf:type ontology:nonprofit_organization } }
[]
business enterprise nonprofit organization
SYSTEM
2 business enterprises and 1 nonprofit organizations
Q2838156 Q6658155 Q881458
(c(Q4830453),P159,Q1799) (c(Q163740),P159,Q1799) (c(Q4830453),P159,Q1799) (c(Q163740),P159,Q1799)
action count
action union
action filter_type
action find_reverse
entity Q1799
relation P159
type Q4830453
action filter_type
action find_reverse
entity Q1799
relation P159
type Q163740
[ANSWER]
[{'concept': 'Q4830453'}, 'P159', 'Q1799'] [{'concept': 'Q163740'}, 'P159', 'Q1799'] [{'concept': 'Q4830453'}, 'P159', 'Q1799'] [{'concept': 'Q163740'}, 'P159', 'Q1799']
SELECT DISTINCT ( COUNT ( ?b ) AS ?n ) WHERE { { ?b rdf:type ontology:Q4830453 . ?b property:P159 resource:Q1799 } UNION { ?b property:P159 resource:Q1799 . ?b rdf:type ontology:Q163740 } }
Alliance française Wrocław LiveChat Software FAMO
2 business enterprises and 1 nonprofit organizations
action count
action union
action filter_type
action find_reverse
entity Wrocław
relation headquarters location
type business enterprise
action filter_type
action find_reverse
entity Wrocław
relation headquarters location
type nonprofit organization
[{'concept': 'business enterprise'}, 'headquarters location', 'Wrocław'] [{'concept': 'nonprofit organization'}, 'headquarters location', 'Wrocław'] [{'concept': 'business enterprise'}, 'headquarters location', 'Wrocław'] [{'concept': 'nonprofit organization'}, 'headquarters location', 'Wrocław']
SELECT DISTINCT ( COUNT ( ?b ) AS ?n ) WHERE { { ?b rdf:type ontology:business_enterprise . ?b property:headquarters_location resource:Wrocław } UNION { ?b property:headquarters_location resource:Wrocław . ?b rdf:type ontology:nonprofit_organization } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1799
P6
Q502895
USER
Which person has Wrocław as its head of government ?
(Q1799,P6,c(Q502895))
action filter_type
action find
entity Q1799
relation P6
type Q502895
['Q1799', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?o WHERE { resource:Q1799 property:P6 ?o . ?o rdf:type ontology:Q502895 }
Wrocław
action filter_type
action find
entity Wrocław
relation head of government
type common name
['Wrocław', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?o WHERE { resource:Wrocław property:head_of_government ?o . ?o rdf:type ontology:common_name }
[]
common name
Q2127075
SYSTEM
Rafał Dutkiewicz
Q2127075
(Q1799,P6,c(Q502895))
action filter_type
action find
entity Q1799
relation P6
type Q502895
[ANSWER] has Wrocław as its head of government
['Q1799', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?o WHERE { resource:Q1799 property:P6 ?o . ?o rdf:type ontology:Q502895 }
Rafał Dutkiewicz
Rafał Dutkiewicz has Wrocław as its head of government
Rafał Dutkiewicz
action filter_type
action find
entity Wrocław
relation head of government
type common name
['Wrocław', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?o WHERE { resource:Wrocław property:head_of_government ?o . ?o rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1799
P237
Q17335294
USER
Which coat of arms serves as the heraldic design for that human settlement ?
(Q2127075,P237,c(Q17335294))
action filter_type
action find
entity Q1799
relation P237
type Q17335294
['Q2127075', 'P237', {'concept': 'Q17335294'}]
SELECT DISTINCT ?j WHERE { resource:Q1799 property:P237 ?j . ?j rdf:type ontology:Q17335294 }
Wrocław
action filter_type
action find
entity Wrocław
relation coat of arms
type flag or coat of arms
['Rafał Dutkiewicz', 'coat of arms', {'concept': 'flag or coat of arms'}]
SELECT DISTINCT ?j WHERE { resource:Wrocław property:coat_of_arms ?j . ?j rdf:type ontology:flag_or_coat_of_arms }
[]
flag or coat of arms
Q1757668
SYSTEM
Coat of arms of Wrocław
Q1757668
(Q2127075,P237,c(Q17335294))
action filter_type
action find
entity Q1799
relation P237
type Q17335294
[ANSWER] serves as the heraldic design for that human settlement
['Q2127075', 'P237', {'concept': 'Q17335294'}]
SELECT DISTINCT ?j WHERE { resource:Q1799 property:P237 ?j . ?j rdf:type ontology:Q17335294 }
Coat of arms of Wrocław
Coat of arms of Wrocław serves as the heraldic design for that human settlement
Coat of arms of Wrocław
action filter_type
action find
entity Wrocław
relation coat of arms
type flag or coat of arms
['Rafał Dutkiewicz', 'coat of arms', {'concept': 'flag or coat of arms'}]
SELECT DISTINCT ?j WHERE { resource:Wrocław property:coat_of_arms ?j . ?j rdf:type ontology:flag_or_coat_of_arms }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P417
Q502895 Q44539 Q16970
USER
Which people are the patron saint of max number of temples and churches ?
(c(Q44539)|c(Q16970),P417,c(Q502895))
action argmax
action union
action find_reverse_tuple_counts
relation P417
type Q502895
type Q44539
action find_reverse_tuple_counts
relation P417
type Q502895
type Q16970
[[{'concept': 'Q44539'}, {'concept': 'Q16970'}], 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MAX ( ?d ) AS ?o ) { SELECT DISTINCT ( COUNT ( ?y ) AS ?d ) ?k WHERE { { ?y property:P417 ?k . ?k rdf:type ontology:Q502895 . ?y rdf:type ontology:Q44539 } UNION { ?y property:P417 ?k . ?k rdf:type ontology:Q502895 . ?y rdf:type ontology:Q16970 } } GROUP BY ?k } } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?n ) ?p WHERE { { ?e property:P417 ?p . ?p rdf:type ontology:Q502895 . ?e rdf:type ontology:Q44539 } UNION { ?e property:P417 ?p . ?p rdf:type ontology:Q502895 . ?e rdf:type ontology:Q16970 } } GROUP BY ?p } . FILTER ( ?n = ?o ) }
action argmax
action union
action find_reverse_tuple_counts
relation patron saint
type common name
type temple
action find_reverse_tuple_counts
relation patron saint
type common name
type church
[[{'concept': 'temple'}, {'concept': 'church'}], 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MAX ( ?d ) AS ?o ) { SELECT DISTINCT ( COUNT ( ?y ) AS ?d ) ?k WHERE { { ?y property:patron_saint ?k . ?k rdf:type ontology:common_name . ?y rdf:type ontology:temple } UNION { ?y property:patron_saint ?k . ?k rdf:type ontology:common_name . ?y rdf:type ontology:church } } GROUP BY ?k } } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?n ) ?p WHERE { { ?e property:patron_saint ?p . ?p rdf:type ontology:common_name . ?e rdf:type ontology:temple } UNION { ?e property:patron_saint ?p . ?p rdf:type ontology:common_name . ?e rdf:type ontology:church } } GROUP BY ?p } . FILTER ( ?n = ?o ) }
[]
common name temple church
Q33923
SYSTEM
Peter
Q33923
(c(Q44539)|c(Q16970),P417,c(Q502895))
action argmax
action union
action find_reverse_tuple_counts
relation P417
type Q502895
type Q44539
action find_reverse_tuple_counts
relation P417
type Q502895
type Q16970
[ANSWER] is the patron saint of max number of temples and churches
[[{'concept': 'Q44539'}, {'concept': 'Q16970'}], 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MAX ( ?d ) AS ?o ) { SELECT DISTINCT ( COUNT ( ?y ) AS ?d ) ?k WHERE { { ?y property:P417 ?k . ?k rdf:type ontology:Q502895 . ?y rdf:type ontology:Q44539 } UNION { ?y property:P417 ?k . ?k rdf:type ontology:Q502895 . ?y rdf:type ontology:Q16970 } } GROUP BY ?k } } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?n ) ?p WHERE { { ?e property:P417 ?p . ?p rdf:type ontology:Q502895 . ?e rdf:type ontology:Q44539 } UNION { ?e property:P417 ?p . ?p rdf:type ontology:Q502895 . ?e rdf:type ontology:Q16970 } } GROUP BY ?p } . FILTER ( ?n = ?o ) }
Peter
Peter is the patron saint of max number of temples and churches
Peter
action argmax
action union
action find_reverse_tuple_counts
relation patron saint
type common name
type temple
action find_reverse_tuple_counts
relation patron saint
type common name
type church
[[{'concept': 'temple'}, {'concept': 'church'}], 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MAX ( ?d ) AS ?o ) { SELECT DISTINCT ( COUNT ( ?y ) AS ?d ) ?k WHERE { { ?y property:patron_saint ?k . ?k rdf:type ontology:common_name . ?y rdf:type ontology:temple } UNION { ?y property:patron_saint ?k . ?k rdf:type ontology:common_name . ?y rdf:type ontology:church } } GROUP BY ?k } } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?n ) ?p WHERE { { ?e property:patron_saint ?p . ?p rdf:type ontology:common_name . ?e rdf:type ontology:temple } UNION { ?e property:patron_saint ?p . ?p rdf:type ontology:common_name . ?e rdf:type ontology:church } } GROUP BY ?p } . FILTER ( ?n = ?o ) }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q16937939 Q68525
P27
Q1048835
USER
Which political territories do Stephan Cohn-Vossen and Kaspar Vallot belong to ?
AND((Q68525,P27,c(Q1048835)), (Q16937939,P27,c(Q1048835)))
action filter_type
action intersection
action find
entity Q68525
relation P27
action find
entity Q16937939
relation P27
type Q1048835
{'AND': [['Q68525', 'P27', {'concept': 'Q1048835'}], ['Q16937939', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?n WHERE { resource:Q68525 property:P27 ?n . resource:Q16937939 property:P27 ?n . ?n rdf:type ontology:Q1048835 }
Kaspar Vallot Stephan Cohn-Vossen
action filter_type
action intersection
action find
entity Stephan Cohn-Vossen
relation country of citizenship
action find
entity Kaspar Vallot
relation country of citizenship
type political territorial entity
{'AND': [['Stephan Cohn-Vossen', 'country of citizenship', {'concept': 'political territorial entity'}], ['Kaspar Vallot', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?n WHERE { resource:Stephan_Cohn-Vossen property:country_of_citizenship ?n . resource:Kaspar_Vallot property:country_of_citizenship ?n . ?n rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
AND((Q68525,P27,c(Q1048835)), (Q16937939,P27,c(Q1048835)))
action filter_type
action intersection
action find
entity Q68525
relation P27
action find
entity Q16937939
relation P27
type Q1048835
Stephan Cohn- Vossen and Kaspar Vallot belong to the [ANSWER]
{'AND': [['Q68525', 'P27', {'concept': 'Q1048835'}], ['Q16937939', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?n WHERE { resource:Q68525 property:P27 ?n . resource:Q16937939 property:P27 ?n . ?n rdf:type ontology:Q1048835 }
Germany
Stephan Cohn- Vossen and Kaspar Vallot belong to the Germany
Germany
action filter_type
action intersection
action find
entity Stephan Cohn-Vossen
relation country of citizenship
action find
entity Kaspar Vallot
relation country of citizenship
type political territorial entity
{'AND': [['Stephan Cohn-Vossen', 'country of citizenship', {'concept': 'political territorial entity'}], ['Kaspar Vallot', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?n WHERE { resource:Stephan_Cohn-Vossen property:country_of_citizenship ?n . resource:Kaspar_Vallot property:country_of_citizenship ?n . ?n rdf:type ontology:political_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q183
P840
Q166142
USER
Which applications have their narrative set in that political territory ?
(c(Q166142),P840,Q183)
action filter_type
action find_reverse
entity Q183
relation P840
type Q166142
[{'concept': 'Q166142'}, 'P840', 'Q183']
SELECT DISTINCT ?q WHERE { ?q property:P840 resource:Q183 . ?q rdf:type ontology:Q166142 }
Germany
action filter_type
action find_reverse
entity Germany
relation narrative location
type application
[{'concept': 'application'}, 'narrative location', 'Germany']
SELECT DISTINCT ?q WHERE { ?q property:narrative_location resource:Germany . ?q rdf:type ontology:application }
[]
application
Q486233 Q137977 Q207986
SYSTEM
Call of Duty: Modern Warfare 3, FIFA 13, Call of Duty: Black Ops
Q1069497 Q17183996 Q1195880 Q918061 Q386452 Q1266307 Q2387 Q616830 Q1165728 Q842146 Q1461007 Q1105711 Q754335 Q1064176 Q74401 Q1168322 Q207797 Q633046 Q978768 Q791439 Q835522 Q532178 Q644433 Q593572 Q1427606 Q1068006 Q714782 Q736887 Q684904 Q1442104 Q2632206 Q773395 Q250989 Q486233 Q932113 Q672049 Q13165 Q738698 Q692360 Q1341049 Q784143 Q76255 Q207986 Q210298 Q1329384 Q1276932 Q732768 Q304003 Q840776 Q1117741 Q746351 Q254090 Q1149590 Q4104 Q252198 Q1069537 Q308961 Q936968 Q137977 Q26097 Q20098839 Q846863 Q211096 Q1279815 Q811024 Q1446951 Q1377313 Q1213047 Q1014678 Q845695 Q843456 Q71932
(c(Q166142),P840,Q183)
action filter_type
action find_reverse
entity Q183
relation P840
type Q166142
[ANSWERS] have their narrative set in that political territory
[{'concept': 'Q166142'}, 'P840', 'Q183']
SELECT DISTINCT ?q WHERE { ?q property:P840 resource:Q183 . ?q rdf:type ontology:Q166142 }
Command & Conquer: Generals – Zero Hour Tom Clancy's Rainbow Six Siege Tomorrow Never Dies F1 2010 Imperialism Call of Duty: World at War – Final Fronts Commandos 2: Men of Courage F355 Challenge Wolfenstein Counter-Strike: Global Offensive The Saboteur Codename: Panzers Command & Conquer: Tiberian Sun Medal of Honor: Underground Indiana Jones and the Fate of Atlantis EA Sports F1 2001 Call of Duty: World at War Command & Conquer 3: Tiberium Wars Race Driver: Grid Battlefield 1942 GT Legends Colin McRae: Dirt Gabriel Knight: Sins of the Fathers Formula One Championship Edition Soldier of Fortune Darklands Sniper Elite V2 Virtua Tennis 4 Command & Conquer: Red Alert 2 The Duel: Test Drive II Euro Truck Simulator 2 Gran Turismo 5 TOCA Race Driver 3 Call of Duty: Modern Warfare 3 Medal of Honor: Airborne Tekken Tag Tournament 2 Death to Spies Bomb Jack Medal of Honor: Allied Assault Need for Speed: Porsche Unleashed Call of Duty 2: Big Red One Call of Duty 4: Modern Warfare Call of Duty: Black Ops Call of Duty 2 Race – The Official WTCC Game Top Spin 4 Rush for Berlin Lords of the Realm III Tom Clancy's EndWar Medal of Honor: Vanguard Command & Conquer: Red Alert 3 F1 2011 The Last Express Need for Speed: Shift Deus Ex: Invisible War Medal of Honor Call of Duty 3 The Operative: No One Lives Forever FIFA 13 XCOM: Enemy Unknown Pro Evolution Soccer 2016 Call of Duty: United Offensive Call of Duty Lost Horizon Battlefield 2142 Test Drive 4 Lords of the Realm Europa 1400: The Guild Zettai Fukuju Meirei Gran Turismo 4 Forza Motorsport 3 Call of Duty: Black Ops: Declassified
Call of Duty: Modern Warfare 3, FIFA 13 and Call of Duty: Black Ops have their narrative set in that political territory
Call of Duty: Modern Warfare 3 FIFA 13 Call of Duty: Black Ops
action filter_type
action find_reverse
entity Germany
relation narrative location
type application
[{'concept': 'application'}, 'narrative location', 'Germany']
SELECT DISTINCT ?q WHERE { ?q property:narrative_location resource:Germany . ?q rdf:type ontology:application }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q1982245
P35
Q502895 Q35798 Q7275
USER
How many people are the chiefs of state of greater number of executive branches and states than Ismail Shammout ?
(c(Q35798)|c(Q7275),P35,c(Q502895))
action count
action greater
action union
action find_reverse_tuple_counts
relation P35
type Q502895
type Q35798
action find_reverse_tuple_counts
relation P35
type Q502895
type Q7275
action count
action filter_multi_types
action find_reverse
entity Q1982245
relation P35
type Q35798
type Q7275
[[{'concept': 'Q35798'}, {'concept': 'Q7275'}], 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?u ) WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?t ) ?v WHERE { { ?k property:P35 ?v . ?k rdf:type ontology:Q35798 . ?v rdf:type ontology:Q502895 } UNION { ?v rdf:type ontology:Q502895 . ?k rdf:type ontology:Q7275 . ?k property:P35 ?v } } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?w ) WHERE { ?n property:P35 resource:Q1982245 . { { ?n rdf:type ontology:Q35798 } UNION { ?n rdf:type ontology:Q7275 } } } } . FILTER ( ?t > ?w ) }
Ismail Shammout
action count
action greater
action union
action find_reverse_tuple_counts
relation head of state
type common name
type executive branch
action find_reverse_tuple_counts
relation head of state
type common name
type state
action count
action filter_multi_types
action find_reverse
entity Ismail Shammout
relation head of state
type executive branch
type state
[[{'concept': 'executive branch'}, {'concept': 'state'}], 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?u ) WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?t ) ?v WHERE { { ?k property:head_of_state ?v . ?k rdf:type ontology:executive_branch . ?v rdf:type ontology:common_name } UNION { ?v rdf:type ontology:common_name . ?k rdf:type ontology:state . ?k property:head_of_state ?v } } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?w ) WHERE { ?n property:head_of_state resource:Ismail_Shammout . { { ?n rdf:type ontology:executive_branch } UNION { ?n rdf:type ontology:state } } } } . FILTER ( ?t > ?w ) }
[]
common name executive branch state
SYSTEM
166
Q19830768 Q310994 Q19830761 Q189732 Q1428924 Q154952 Q297950 Q19464383 Q214029 Q152511 Q19830715 Q152335 Q45068 Q16105901 Q57319 Q152274 Q312557 Q57258 Q162269 Q151667 Q167724 Q157651 Q237951 Q19831439 Q78492 Q19831437 Q19831432 Q259331 Q151087 Q19810371 Q167699 Q472323 Q400961 Q187149 Q855252 Q3956186 Q1245 Q1241 Q1240 Q1242 Q153688 Q1238 Q188214 Q1230 Q42939 Q1233 Q1235 Q16849387 Q2503364 Q295212 Q2610 Q19831452 Q29207 Q179858 Q34105 Q7747 Q152306 Q379203 Q150642 Q299152 Q36233 Q154936 Q334851 Q555531 Q57488 Q290786 Q773874 Q886786 Q7244117 Q6127060 Q2112764 Q2646 Q76437 Q93427 Q19830746 Q76 Q280856 Q57502 Q181261 Q44329 Q157099 Q332709 Q34464 Q334923 Q235454 Q57295 Q4631 Q57279 Q562209 Q8467 Q2601 Q2602 Q2607 Q39619 Q153832 Q163945 Q30487 Q223183 Q213791 Q336913 Q156502 Q257425 Q468847 Q173347 Q13593432 Q160318 Q355053 Q210329 Q205993 Q189575 Q157068 Q57232 Q269412 Q6127112 Q19831185 Q19831184 Q19831183 Q157121 Q399998 Q81215 Q19831457 Q327203 Q156494 Q152463 Q455854 Q212188 Q168691 Q273228 Q371854 Q661663 Q19861344 Q7726 Q150620 Q6225811 Q57287 Q310000 Q57464 Q2667 Q156349 Q332157 Q159585 Q4715 Q37731 Q43915 Q334111 Q19628885 Q296054 Q57526 Q154912 Q352 Q130834 Q57261 Q14257286 Q150652 Q150712 Q229300 Q19831445 Q1228 Q1224 Q1220 Q57338 Q174662 Q65917 Q9682 Q2628 Q19831449
(c(Q35798)|c(Q7275),P35,c(Q502895))
action count
action greater
action union
action find_reverse_tuple_counts
relation P35
type Q502895
type Q35798
action find_reverse_tuple_counts
relation P35
type Q502895
type Q7275
action count
action filter_multi_types
action find_reverse
entity Q1982245
relation P35
type Q35798
type Q7275
[ANSWER]
[[{'concept': 'Q35798'}, {'concept': 'Q7275'}], 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?u ) WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?t ) ?v WHERE { { ?k property:P35 ?v . ?k rdf:type ontology:Q35798 . ?v rdf:type ontology:Q502895 } UNION { ?v rdf:type ontology:Q502895 . ?k rdf:type ontology:Q7275 . ?k property:P35 ?v } } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?w ) WHERE { ?n property:P35 resource:Q1982245 . { { ?n rdf:type ontology:Q35798 } UNION { ?n rdf:type ontology:Q7275 } } } } . FILTER ( ?t > ?w ) }
Thomas Currie Patrick Hillery Jonathan Lambert Leonid Kravchuk Nicola Mancino Willem-Alexander of the Netherlands R. Venkataraman John Woolley Kaarlo Juho Ståhlberg Eddie Fenech Adami Robert Ben Madison László Sólyom Carl XVI Gustaf of Sweden Paul Delprat Norodom Sihamoni Edvard Beneš V. V. Giri Ivo Josipović Jefferson Davis Ferdinand I of Bulgaria Guido de Marco Gustáv Husák Douglas Hyde Carlo I Bertoleoni Tomáš Garrigue Masaryk Paolo I Bertoleoni Giuseppe Bertoleoni Yusof bin Ishak Jérôme Bonaparte Vít Jedlička Ugo Mifsud Bonnici Ranasinghe Premadasa Ahmad bin Yahya Umberto II of Italy Bhumibol Adulyadej Sergio Mattarella Enrico De Nicola Giovanni Gronchi Antonio Segni Luigi Einaudi Umberto I of Italy Giuseppe Saragat Mary Robinson Francesco Cossiga Bronisław Komorowski Sandro Pertini Giovanni Leone Jam Nizamuddin II Pietro Grasso Rosen Plevneliev Willi Stoph Carlo II Bertoleoni Sauli Niinistö Urho Kekkonen Hosni Mubarak Vladimir Putin Carl Gustaf Emil Mannerheim Khieu Samphan Vittorio Emanuele III Emil Constantinescu Václav Havel Arnulf of Carinthia Zail Singh Paddy Roy Bates Jakaya Kikwete Stefan Dragutin Maria I of Portugal Orélie-Antoine de Tounens Prince Karl Emich of Leiningen Jam Feruzudin Nicos Anastasiades Friedrich Ebert Karl Dönitz Archduke John of Austria King Louis I of Talossa Barack Obama George VI George Abela Charles Albert of Sardinia Bashar al-Assad Louis the Child Giovanni Spadolini Philip III of Spain Abu Bakr K. R. Narayanan Ivan Gašparovič Mohamed Morsi Traian Băsescu Cesare Merzagora Umar ibn Al-Khattāb Manfred Gerlach Egon Krenz Erich Honecker Alī ibn Abī Ṭālib Alcide De Gasperi Yahya Muhammad Hamid ed-Din Mikhail Gorbachev Peter II of Yugoslavia Eric Bloodaxe Neelam Sanjiva Reddy Emil Hácha Gojong of the Korean Empire Oswiu of Northumbria Éamon de Valera Adly Mansour Norodom Sihanouk Michael Jeffery Yuan Shikai William Gopallawa Ion Iliescu Lord Mountbatten Sabine Bergmann-Pohl George V Jam Unar Georgette Bertin-Pourchet Gabrielle Pourchet Georges Pourchet Conrad I of Germany Wee Kim Wee Petar Stoyanov Tonino Bertoleoni Seán T. O'Kelly Antonín Novotný Louis the German Reuven Rivlin S. R. Nathan Victor Emmanuel II of Savoy Amintore Fanfani Antonín Zápotocký Stephen Vladislav II of Syrmia Niels Vermeersch Joseph Bonaparte Henry I the Fowler John Charlton Rudge Harald V of Norway Ludvík Svoboda Abdullah II of Jordan Paul von Hindenburg Sarvepalli Radhakrishnan Shankar Dayal Sharma Boris III of Bulgaria Moncef Marzouki Uthman ibn Affan Otto I the Great Sunjong of the Korean Empire Michael Bates Klement Gottwald Bujar Nishani Olav V of Norway Adolf Hitler Francis I of Austria Georgi Parvanov Mamnoon Hussain Wilhelm I of Germany Charles the Fat Quentin Bryce Mariangela Bertoleoni Oscar Luigi Scalfaro Carlo Azeglio Ciampi Giorgio Napolitano Mahinda Rajapaksa Mary McAleese Wilhelm Pieck Elizabeth II Walter Ulbricht Paolo II Bertoleoni
166
action count
action greater
action union
action find_reverse_tuple_counts
relation head of state
type common name
type executive branch
action find_reverse_tuple_counts
relation head of state
type common name
type state
action count
action filter_multi_types
action find_reverse
entity Ismail Shammout
relation head of state
type executive branch
type state
[[{'concept': 'executive branch'}, {'concept': 'state'}], 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?u ) WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?t ) ?v WHERE { { ?k property:head_of_state ?v . ?k rdf:type ontology:executive_branch . ?v rdf:type ontology:common_name } UNION { ?v rdf:type ontology:common_name . ?k rdf:type ontology:state . ?k property:head_of_state ?v } } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?w ) WHERE { ?n property:head_of_state resource:Ismail_Shammout . { { ?n rdf:type ontology:executive_branch } UNION { ?n rdf:type ontology:state } } } } . FILTER ( ?t > ?w ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q217500
P35
Q502895 Q35798 Q7275
USER
And also tell me about Rupiah Banda?
(c(Q35798)|c(Q7275),P35,c(Q502895))
action count
action greater
action union
action find_reverse_tuple_counts
relation P35
type Q502895
type Q35798
action find_reverse_tuple_counts
relation P35
type Q502895
type Q7275
action count
action filter_multi_types
action find_reverse
entity Q217500
relation P35
type Q35798
type Q7275
[[{'concept': 'Q35798'}, {'concept': 'Q7275'}], 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?w ) ?p WHERE { { ?l property:P35 ?p . ?p rdf:type ontology:Q502895 . ?l rdf:type ontology:Q35798 } UNION { ?p rdf:type ontology:Q502895 . ?l rdf:type ontology:Q7275 . ?l property:P35 ?p } } GROUP BY ?p } . FILTER ( ?w > ?d ) . { SELECT DISTINCT ( COUNT ( ?n ) AS ?d ) WHERE { ?n property:P35 resource:Q217500 . { { ?n rdf:type ontology:Q35798 } UNION { ?n rdf:type ontology:Q7275 } } } } }
Rupiah Banda
action count
action greater
action union
action find_reverse_tuple_counts
relation head of state
type common name
type executive branch
action find_reverse_tuple_counts
relation head of state
type common name
type state
action count
action filter_multi_types
action find_reverse
entity Rupiah Banda
relation head of state
type executive branch
type state
[[{'concept': 'executive branch'}, {'concept': 'state'}], 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?w ) ?p WHERE { { ?l property:head_of_state ?p . ?p rdf:type ontology:common_name . ?l rdf:type ontology:executive_branch } UNION { ?p rdf:type ontology:common_name . ?l rdf:type ontology:state . ?l property:head_of_state ?p } } GROUP BY ?p } . FILTER ( ?w > ?d ) . { SELECT DISTINCT ( COUNT ( ?n ) AS ?d ) WHERE { ?n property:head_of_state resource:Rupiah_Banda . { { ?n rdf:type ontology:executive_branch } UNION { ?n rdf:type ontology:state } } } } }
[]
common name executive branch state
SYSTEM
166
Q19830768 Q310994 Q19830761 Q189732 Q1428924 Q154952 Q297950 Q19464383 Q214029 Q152511 Q19830715 Q152335 Q45068 Q16105901 Q57319 Q152274 Q312557 Q57258 Q162269 Q151667 Q167724 Q157651 Q237951 Q19831439 Q78492 Q19831437 Q19831432 Q259331 Q151087 Q19810371 Q167699 Q472323 Q400961 Q187149 Q855252 Q3956186 Q1245 Q1241 Q1240 Q1242 Q153688 Q1238 Q188214 Q1230 Q42939 Q1233 Q1235 Q16849387 Q2503364 Q295212 Q2610 Q19831452 Q29207 Q179858 Q34105 Q7747 Q152306 Q379203 Q150642 Q299152 Q36233 Q154936 Q334851 Q555531 Q57488 Q290786 Q773874 Q886786 Q7244117 Q6127060 Q2112764 Q2646 Q76437 Q93427 Q19830746 Q76 Q280856 Q57502 Q181261 Q44329 Q157099 Q332709 Q34464 Q334923 Q235454 Q57295 Q4631 Q57279 Q562209 Q8467 Q2601 Q2602 Q2607 Q39619 Q153832 Q163945 Q30487 Q223183 Q213791 Q336913 Q156502 Q257425 Q468847 Q173347 Q13593432 Q160318 Q355053 Q210329 Q205993 Q189575 Q157068 Q57232 Q269412 Q6127112 Q19831185 Q19831184 Q19831183 Q157121 Q399998 Q81215 Q19831457 Q327203 Q156494 Q152463 Q455854 Q212188 Q168691 Q273228 Q371854 Q661663 Q19861344 Q7726 Q150620 Q6225811 Q57287 Q310000 Q57464 Q2667 Q156349 Q332157 Q159585 Q4715 Q37731 Q43915 Q334111 Q19628885 Q296054 Q57526 Q154912 Q352 Q130834 Q57261 Q14257286 Q150652 Q150712 Q229300 Q19831445 Q1228 Q1224 Q1220 Q57338 Q174662 Q65917 Q9682 Q2628 Q19831449
(c(Q35798)|c(Q7275),P35,c(Q502895))
action count
action greater
action union
action find_reverse_tuple_counts
relation P35
type Q502895
type Q35798
action find_reverse_tuple_counts
relation P35
type Q502895
type Q7275
action count
action filter_multi_types
action find_reverse
entity Q217500
relation P35
type Q35798
type Q7275
[ANSWER]
[[{'concept': 'Q35798'}, {'concept': 'Q7275'}], 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?w ) ?p WHERE { { ?l property:P35 ?p . ?p rdf:type ontology:Q502895 . ?l rdf:type ontology:Q35798 } UNION { ?p rdf:type ontology:Q502895 . ?l rdf:type ontology:Q7275 . ?l property:P35 ?p } } GROUP BY ?p } . FILTER ( ?w > ?d ) . { SELECT DISTINCT ( COUNT ( ?n ) AS ?d ) WHERE { ?n property:P35 resource:Q217500 . { { ?n rdf:type ontology:Q35798 } UNION { ?n rdf:type ontology:Q7275 } } } } }
Thomas Currie Patrick Hillery Jonathan Lambert Leonid Kravchuk Nicola Mancino Willem-Alexander of the Netherlands R. Venkataraman John Woolley Kaarlo Juho Ståhlberg Eddie Fenech Adami Robert Ben Madison László Sólyom Carl XVI Gustaf of Sweden Paul Delprat Norodom Sihamoni Edvard Beneš V. V. Giri Ivo Josipović Jefferson Davis Ferdinand I of Bulgaria Guido de Marco Gustáv Husák Douglas Hyde Carlo I Bertoleoni Tomáš Garrigue Masaryk Paolo I Bertoleoni Giuseppe Bertoleoni Yusof bin Ishak Jérôme Bonaparte Vít Jedlička Ugo Mifsud Bonnici Ranasinghe Premadasa Ahmad bin Yahya Umberto II of Italy Bhumibol Adulyadej Sergio Mattarella Enrico De Nicola Giovanni Gronchi Antonio Segni Luigi Einaudi Umberto I of Italy Giuseppe Saragat Mary Robinson Francesco Cossiga Bronisław Komorowski Sandro Pertini Giovanni Leone Jam Nizamuddin II Pietro Grasso Rosen Plevneliev Willi Stoph Carlo II Bertoleoni Sauli Niinistö Urho Kekkonen Hosni Mubarak Vladimir Putin Carl Gustaf Emil Mannerheim Khieu Samphan Vittorio Emanuele III Emil Constantinescu Václav Havel Arnulf of Carinthia Zail Singh Paddy Roy Bates Jakaya Kikwete Stefan Dragutin Maria I of Portugal Orélie-Antoine de Tounens Prince Karl Emich of Leiningen Jam Feruzudin Nicos Anastasiades Friedrich Ebert Karl Dönitz Archduke John of Austria King Louis I of Talossa Barack Obama George VI George Abela Charles Albert of Sardinia Bashar al-Assad Louis the Child Giovanni Spadolini Philip III of Spain Abu Bakr K. R. Narayanan Ivan Gašparovič Mohamed Morsi Traian Băsescu Cesare Merzagora Umar ibn Al-Khattāb Manfred Gerlach Egon Krenz Erich Honecker Alī ibn Abī Ṭālib Alcide De Gasperi Yahya Muhammad Hamid ed-Din Mikhail Gorbachev Peter II of Yugoslavia Eric Bloodaxe Neelam Sanjiva Reddy Emil Hácha Gojong of the Korean Empire Oswiu of Northumbria Éamon de Valera Adly Mansour Norodom Sihanouk Michael Jeffery Yuan Shikai William Gopallawa Ion Iliescu Lord Mountbatten Sabine Bergmann-Pohl George V Jam Unar Georgette Bertin-Pourchet Gabrielle Pourchet Georges Pourchet Conrad I of Germany Wee Kim Wee Petar Stoyanov Tonino Bertoleoni Seán T. O'Kelly Antonín Novotný Louis the German Reuven Rivlin S. R. Nathan Victor Emmanuel II of Savoy Amintore Fanfani Antonín Zápotocký Stephen Vladislav II of Syrmia Niels Vermeersch Joseph Bonaparte Henry I the Fowler John Charlton Rudge Harald V of Norway Ludvík Svoboda Abdullah II of Jordan Paul von Hindenburg Sarvepalli Radhakrishnan Shankar Dayal Sharma Boris III of Bulgaria Moncef Marzouki Uthman ibn Affan Otto I the Great Sunjong of the Korean Empire Michael Bates Klement Gottwald Bujar Nishani Olav V of Norway Adolf Hitler Francis I of Austria Georgi Parvanov Mamnoon Hussain Wilhelm I of Germany Charles the Fat Quentin Bryce Mariangela Bertoleoni Oscar Luigi Scalfaro Carlo Azeglio Ciampi Giorgio Napolitano Mahinda Rajapaksa Mary McAleese Wilhelm Pieck Elizabeth II Walter Ulbricht Paolo II Bertoleoni
166
action count
action greater
action union
action find_reverse_tuple_counts
relation head of state
type common name
type executive branch
action find_reverse_tuple_counts
relation head of state
type common name
type state
action count
action filter_multi_types
action find_reverse
entity Rupiah Banda
relation head of state
type executive branch
type state
[[{'concept': 'executive branch'}, {'concept': 'state'}], 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?w ) ?p WHERE { { ?l property:head_of_state ?p . ?p rdf:type ontology:common_name . ?l rdf:type ontology:executive_branch } UNION { ?p rdf:type ontology:common_name . ?l rdf:type ontology:state . ?l property:head_of_state ?p } } GROUP BY ?p } . FILTER ( ?w > ?d ) . { SELECT DISTINCT ( COUNT ( ?n ) AS ?d ) WHERE { ?n property:head_of_state resource:Rupiah_Banda . { { ?n rdf:type ontology:executive_branch } UNION { ?n rdf:type ontology:state } } } } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P1441
Q166142 Q6619679 Q95074
USER
How many applications are approximately 2 fictional humanoids or fictional characters shown in ?
(c(Q6619679)|c(Q95074),P1441,c(Q166142))
action count
action approx
action union
action find_reverse_tuple_counts
relation P1441
type Q166142
type Q6619679
action find_reverse_tuple_counts
relation P1441
type Q166142
type Q95074
value 2
[[{'concept': 'Q6619679'}, {'concept': 'Q95074'}], 'P1441', {'concept': 'Q166142'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?l ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?t ) AS ?u ) WHERE { { ?x rdf:type ontology:Q166142 . ?t rdf:type ontology:Q95074 . ?t property:P1441 ?x } UNION { ?t property:P1441 ?x . ?x rdf:type ontology:Q166142 . ?t rdf:type ontology:Q6619679 } } GROUP BY ?x } . FILTER ( ?u = 2 ) }
action count
action approx
action union
action find_reverse_tuple_counts
relation present in work
type application
type fictional humanoid
action find_reverse_tuple_counts
relation present in work
type application
type fictional character
value 2
[[{'concept': 'fictional humanoid'}, {'concept': 'fictional character'}], 'present in work', {'concept': 'application'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?l ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?t ) AS ?u ) WHERE { { ?x rdf:type ontology:application . ?t rdf:type ontology:fictional_character . ?t property:present_in_work ?x } UNION { ?t property:present_in_work ?x . ?x rdf:type ontology:application . ?t rdf:type ontology:fictional_humanoid } } GROUP BY ?x } . FILTER ( ?u = 2 ) }
[]
application fictional humanoid fictional character
SYSTEM
5
Q804859 Q843131 Q1217501 Q281110 Q161188
(c(Q6619679)|c(Q95074),P1441,c(Q166142))
action count
action approx
action union
action find_reverse_tuple_counts
relation P1441
type Q166142
type Q6619679
action find_reverse_tuple_counts
relation P1441
type Q166142
type Q95074
value 2
[ANSWER]
[[{'concept': 'Q6619679'}, {'concept': 'Q95074'}], 'P1441', {'concept': 'Q166142'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?l ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?t ) AS ?u ) WHERE { { ?x rdf:type ontology:Q166142 . ?t rdf:type ontology:Q95074 . ?t property:P1441 ?x } UNION { ?t property:P1441 ?x . ?x rdf:type ontology:Q166142 . ?t rdf:type ontology:Q6619679 } } GROUP BY ?x } . FILTER ( ?u = 2 ) }
Baldur's Gate II: Shadows of Amn Super Smash Bros. Brawl The World Is Not Enough Kingdom Hearts Birth by Sleep James Bond 007: Nightfire
5
action count
action approx
action union
action find_reverse_tuple_counts
relation present in work
type application
type fictional humanoid
action find_reverse_tuple_counts
relation present in work
type application
type fictional character
value 2
[[{'concept': 'fictional humanoid'}, {'concept': 'fictional character'}], 'present in work', {'concept': 'application'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?l ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?t ) AS ?u ) WHERE { { ?x rdf:type ontology:application . ?t rdf:type ontology:fictional_character . ?t property:present_in_work ?x } UNION { ?t property:present_in_work ?x . ?x rdf:type ontology:application . ?t rdf:type ontology:fictional_humanoid } } GROUP BY ?x } . FILTER ( ?u = 2 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P206
Q355304 Q337567 Q486972
USER
How many human settlements are situated close to atleast 2 watercourses or still waterss ?
(c(Q486972),P206,c(Q355304)|c(Q337567))
action count
action atleast
action union
action find_tuple_counts
relation P206
type Q486972
type Q355304
action find_tuple_counts
relation P206
type Q486972
type Q337567
value 2
[{'concept': 'Q486972'}, 'P206', [{'concept': 'Q355304'}, {'concept': 'Q337567'}]]
SELECT DISTINCT ( COUNT ( ?y ) AS ?m ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?w ) AS ?d ) WHERE { VALUES ( ?i ) { ( ontology:Q355304 ) ( ontology:Q337567 ) } . ?w rdf:type ?i } GROUP BY ?y } . FILTER ( ?d >= 2 ) }
action count
action atleast
action union
action find_tuple_counts
relation located next to body of water
type human settlement
type watercourse
action find_tuple_counts
relation located next to body of water
type human settlement
type still waters
value 2
[{'concept': 'human settlement'}, 'located next to body of water', [{'concept': 'watercourse'}, {'concept': 'still waters'}]]
SELECT DISTINCT ( COUNT ( ?y ) AS ?m ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?w ) AS ?d ) WHERE { VALUES ( ?i ) { ( ontology:watercourse ) ( ontology:still_waters ) } . ?w rdf:type ?i } GROUP BY ?y } . FILTER ( ?d >= 2 ) }
[]
watercourse still waters human settlement
SYSTEM
11
Q19963830 Q2498834 Q19308844 Q47554 Q1055 Q106681 Q18668390 Q2916 Q6827682 Q573294 Q2843
(c(Q486972),P206,c(Q355304)|c(Q337567))
action count
action atleast
action union
action find_tuple_counts
relation P206
type Q486972
type Q355304
action find_tuple_counts
relation P206
type Q486972
type Q337567
value 2
[ANSWER]
[{'concept': 'Q486972'}, 'P206', [{'concept': 'Q355304'}, {'concept': 'Q337567'}]]
SELECT DISTINCT ( COUNT ( ?y ) AS ?m ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?w ) AS ?d ) WHERE { VALUES ( ?i ) { ( ontology:Q355304 ) ( ontology:Q337567 ) } . ?w rdf:type ?i } GROUP BY ?y } . FILTER ( ?d >= 2 ) }
Leibi Unterriexingen Schwarzach Toruń Hamburg Włocławek Le Carnet Osnabrück Mianowo, Ostrów Mazowiecka County Mühlburg Lübeck
11
action count
action atleast
action union
action find_tuple_counts
relation located next to body of water
type human settlement
type watercourse
action find_tuple_counts
relation located next to body of water
type human settlement
type still waters
value 2
[{'concept': 'human settlement'}, 'located next to body of water', [{'concept': 'watercourse'}, {'concept': 'still waters'}]]
SELECT DISTINCT ( COUNT ( ?y ) AS ?m ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?w ) AS ?d ) WHERE { VALUES ( ?i ) { ( ontology:watercourse ) ( ontology:still_waters ) } . ?w rdf:type ?i } GROUP BY ?y } . FILTER ( ?d >= 2 ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1445
Q166142 Q386724
USER
Which works were described in approximately 2 applications ?
(c(Q386724),P1445,c(Q166142))
action approx
action find_tuple_counts
relation P1445
type Q386724
type Q166142
value 2
[{'concept': 'Q386724'}, 'P1445', {'concept': 'Q166142'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?n ) AS ?u ) WHERE { ?z property:P1445 ?n . ?z rdf:type ontology:Q386724 . ?n rdf:type ontology:Q166142 } GROUP BY ?z } . FILTER ( ?u = 2 ) }
action approx
action find_tuple_counts
relation fictional universe described in
type work
type application
value 2
[{'concept': 'work'}, 'fictional universe described in', {'concept': 'application'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?n ) AS ?u ) WHERE { ?z property:fictional_universe_described_in ?n . ?z rdf:type ontology:work . ?n rdf:type ontology:application } GROUP BY ?z } . FILTER ( ?u = 2 ) }
[]
application work
Q384426 Q15731902 Q11927
SYSTEM
Pirates of the Caribbean, Aladdin media franchise, Stargate
Q15731902 Q11927 Q3177580 Q384426
(c(Q386724),P1445,c(Q166142))
action approx
action find_tuple_counts
relation P1445
type Q386724
type Q166142
value 2
[ANSWERS] were described in approximately 2 applications
[{'concept': 'Q386724'}, 'P1445', {'concept': 'Q166142'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?n ) AS ?u ) WHERE { ?z property:P1445 ?n . ?z rdf:type ontology:Q386724 . ?n rdf:type ontology:Q166142 } GROUP BY ?z } . FILTER ( ?u = 2 ) }
Aladdin media franchise Stargate The Walking Dead Pirates of the Caribbean
Pirates of the Caribbean, Aladdin media franchise and Stargate were described in approximately 2 applications
Pirates of the Caribbean Aladdin media franchise Stargate
action approx
action find_tuple_counts
relation fictional universe described in
type work
type application
value 2
[{'concept': 'work'}, 'fictional universe described in', {'concept': 'application'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?n ) AS ?u ) WHERE { ?z property:fictional_universe_described_in ?n . ?z rdf:type ontology:work . ?n rdf:type ontology:application } GROUP BY ?z } . FILTER ( ?u = 2 ) }
[]