Simple Question (Direct)
Simple Question
Q5980543
P641
Q349
USER
What did Iain McDonald participate in ?
(Q5980543,P641,c(Q349))
action filter_type
action find
entity Q5980543
relation P641
type Q349
['Q5980543', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?t WHERE { resource:Q5980543 property:P641 ?t . ?t rdf:type ontology:Q349 }
Iain McDonald
action filter_type
action find
entity Iain McDonald
relation sport
type sport
['Iain McDonald', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?t WHERE { resource:Iain_McDonald property:sport ?t . ?t rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q5980543,P641,c(Q349))
action filter_type
action find
entity Q5980543
relation P641
type Q349
Iain McDonald participated in [ANSWER]
['Q5980543', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?t WHERE { resource:Q5980543 property:P641 ?t . ?t rdf:type ontology:Q349 }
association football
Iain McDonald participated in association football
association football
action filter_type
action find
entity Iain McDonald
relation sport
type sport
['Iain McDonald', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?t WHERE { resource:Iain_McDonald property:sport ?t . ?t rdf:type ontology:sport }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5980543
P27
Q15617994
USER
Which administrative territory is the country of citizenship of that person ?
(Q2736,P27,c(Q15617994))
action filter_type
action find
entity Q5980543
relation P27
type Q15617994
['Q2736', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { resource:Q5980543 property:P27 ?s . ?s rdf:type ontology:Q15617994 }
Iain McDonald
action filter_type
action find
entity Iain McDonald
relation country of citizenship
type designation for an administrative territorial entity
['association football', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Iain_McDonald property:country_of_citizenship ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q145
SYSTEM
United Kingdom
Q145
(Q2736,P27,c(Q15617994))
action filter_type
action find
entity Q5980543
relation P27
type Q15617994
[ANSWER] is the country of citizenship of that person
['Q2736', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { resource:Q5980543 property:P27 ?s . ?s rdf:type ontology:Q15617994 }
United Kingdom
United Kingdom is the country of citizenship of that person
United Kingdom
action filter_type
action find
entity Iain McDonald
relation country of citizenship
type designation for an administrative territorial entity
['association football', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Iain_McDonald property:country_of_citizenship ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P1376
Q15617994 Q515 Q486972
USER
How many administrative territories have approximately 1 cities and human settlements have their center of administration ?
(c(Q515)|c(Q486972),P1376,c(Q15617994))
action count
action approx
action union
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q515
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q486972
value 1
[[{'concept': 'Q515'}, {'concept': 'Q486972'}], 'P1376', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?r ) WHERE { FILTER ( ?w = 1 ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?w ) ?s WHERE { { ?k property:P1376 ?s . ?s rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q515 } UNION { ?k rdf:type ontology:Q486972 . ?s rdf:type ontology:Q15617994 . ?k property:P1376 ?s } } GROUP BY ?s } }
action count
action approx
action union
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type city
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type human settlement
value 1
[[{'concept': 'city'}, {'concept': 'human settlement'}], 'capital of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?r ) WHERE { FILTER ( ?w = 1 ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?w ) ?s WHERE { { ?k property:capital_of ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:city } UNION { ?k rdf:type ontology:human_settlement . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k property:capital_of ?s } } GROUP BY ?s } }
[]
designation for an administrative territorial entity city human settlement
SYSTEM
69
Q414 Q1111401 Q399 Q258 Q155 Q736 Q843 Q2007 Q1050 Q298 Q115 Q114 Q541589 Q696651 Q948 Q639100 Q702 Q833 Q790 Q796 Q794 Q889 Q884 Q881 Q541095 Q492437 Q1037 Q1033 Q1030 Q750 Q30831 Q878 Q46130 Q3044714 Q1951 Q492430 Q711 Q717 Q1948 Q27 Q225 Q222 Q47261 Q228 Q965 Q963 Q1008 Q72670 Q568751 Q2150573 Q12536 Q3342 Q842 Q3240 Q4712 Q924 Q928 Q851 Q12717 Q347 Q3462133 Q17 Q3207 Q212 Q211 Q218 Q974 Q1019 Q1011
(c(Q515)|c(Q486972),P1376,c(Q15617994))
action count
action approx
action union
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q515
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q486972
value 1
[ANSWER]
[[{'concept': 'Q515'}, {'concept': 'Q486972'}], 'P1376', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?r ) WHERE { FILTER ( ?w = 1 ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?w ) ?s WHERE { { ?k property:P1376 ?s . ?s rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q515 } UNION { ?k rdf:type ontology:Q486972 . ?s rdf:type ontology:Q15617994 . ?k property:P1376 ?s } } GROUP BY ?s } }
Argentina Kispest District Armenia South Africa Brazil Ecuador Pakistan Northwest Territories Swaziland Chile Ethiopia Kenya Ems-Supérieur Saxe-Eisenach Tunisia Principality of Reuss-Gera Federated States of Micronesia Malaysia Haiti Iraq Iran Afghanistan South Korea Vietnam Rhin-et-Moselle Bouches-du-Weser Rwanda Nigeria Namibia Bolivia Red Sea Governorate United Arab Emirates Rhône Ouest Alberta Bouches-de-l'Elbe Mongolia Venezuela Manitoba Ireland Bosnia and Herzegovina Albania Duchy of Bavaria Andorra Burkina Faso Botswana Côte d'Ivoire Batumi Oblast Mont-Tonnerre Unterelsaß Abbasid caliphate Côte-d'Or Oman Bouches-du-Rhône Duchy of Burgundy Tanzania Philippines Saudi Arabia Bas-Rhin Liechtenstein Saxe-Coburg and Gotha Japan Aude Ukraine Latvia Romania Democratic Republic of the Congo Madagascar Cape Verde
69
action count
action approx
action union
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type city
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type human settlement
value 1
[[{'concept': 'city'}, {'concept': 'human settlement'}], 'capital of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?r ) WHERE { FILTER ( ?w = 1 ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?w ) ?s WHERE { { ?k property:capital_of ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:city } UNION { ?k rdf:type ontology:human_settlement . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k property:capital_of ?s } } GROUP BY ?s } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q57229
P512
Q3412758
USER
What is the degree held by Sigmund Jähn ?
(Q57229,P512,c(Q3412758))
action filter_type
action find
entity Q57229
relation P512
type Q3412758
['Q57229', 'P512', {'concept': 'Q3412758'}]
SELECT DISTINCT ?p WHERE { resource:Q57229 property:P512 ?p . ?p rdf:type ontology:Q3412758 }
Sigmund Jähn
action filter_type
action find
entity Sigmund Jähn
relation academic degree
type qualification
['Sigmund Jähn', 'academic degree', {'concept': 'qualification'}]
SELECT DISTINCT ?p WHERE { resource:Sigmund_Jähn property:academic_degree ?p . ?p rdf:type ontology:qualification }
[]
qualification
Q849697
SYSTEM
doctoral degree
Q849697
(Q57229,P512,c(Q3412758))
action filter_type
action find
entity Q57229
relation P512
type Q3412758
The degree held by Sigmund Jähn is a [ANSWER]
['Q57229', 'P512', {'concept': 'Q3412758'}]
SELECT DISTINCT ?p WHERE { resource:Q57229 property:P512 ?p . ?p rdf:type ontology:Q3412758 }
doctoral degree
The degree held by Sigmund Jähn is a doctoral degree
doctoral degree
action filter_type
action find
entity Sigmund Jähn
relation academic degree
type qualification
['Sigmund Jähn', 'academic degree', {'concept': 'qualification'}]
SELECT DISTINCT ?p WHERE { resource:Sigmund_Jähn property:academic_degree ?p . ?p rdf:type ontology:qualification }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q1694085
Q3412758
USER
And also tell me about Johann Gottfried Bönisch?
(Q1694085,P512,c(Q3412758))
action filter_type
action find
entity Q1694085
relation P512
type Q3412758
['Q1694085', 'P512', {'concept': 'Q3412758'}]
SELECT DISTINCT ?y WHERE { resource:Q1694085 property:P512 ?y . ?y rdf:type ontology:Q3412758 }
Johann Gottfried Bönisch
action filter_type
action find
entity Johann Gottfried Bönisch
relation academic degree
type qualification
['Johann Gottfried Bönisch', 'academic degree', {'concept': 'qualification'}]
SELECT DISTINCT ?y WHERE { resource:Johann_Gottfried_Bönisch property:academic_degree ?y . ?y rdf:type ontology:qualification }
[]
qualification
Q849697
SYSTEM
doctoral degree
Q849697
(Q1694085,P512,c(Q3412758))
action filter_type
action find
entity Q1694085
relation P512
type Q3412758
[ANSWER]
['Q1694085', 'P512', {'concept': 'Q3412758'}]
SELECT DISTINCT ?y WHERE { resource:Q1694085 property:P512 ?y . ?y rdf:type ontology:Q3412758 }
doctoral degree
doctoral degree
action filter_type
action find
entity Johann Gottfried Bönisch
relation academic degree
type qualification
['Johann Gottfried Bönisch', 'academic degree', {'concept': 'qualification'}]
SELECT DISTINCT ?y WHERE { resource:Johann_Gottfried_Bönisch property:academic_degree ?y . ?y rdf:type ontology:qualification }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q26691014
P1313
Q1048835
USER
Which political territory has mayor of Montemolín as office of head of government ?
(c(Q1048835),P1313,Q26691014)
action filter_type
action find_reverse
entity Q26691014
relation P1313
type Q1048835
[{'concept': 'Q1048835'}, 'P1313', 'Q26691014']
SELECT DISTINCT ?x WHERE { ?x property:P1313 resource:Q26691014 . ?x rdf:type ontology:Q1048835 }
mayor of Montemolín
action filter_type
action find_reverse
entity mayor of Montemolín
relation office held by head of government
type political territorial entity
[{'concept': 'political territorial entity'}, 'office held by head of government', 'mayor of Montemolín']
SELECT DISTINCT ?x WHERE { ?x property:office_held_by_head_of_government resource:mayor_of_Montemolín . ?x rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q1372801
SYSTEM
Montemolín
Q1372801
(c(Q1048835),P1313,Q26691014)
action filter_type
action find_reverse
entity Q26691014
relation P1313
type Q1048835
[ANSWER] has mayor of [ANSWER] as office of head of government
[{'concept': 'Q1048835'}, 'P1313', 'Q26691014']
SELECT DISTINCT ?x WHERE { ?x property:P1313 resource:Q26691014 . ?x rdf:type ontology:Q1048835 }
Montemolín
Montemolín has mayor of Montemolín as office of head of government
Montemolín
action filter_type
action find_reverse
entity mayor of Montemolín
relation office held by head of government
type political territorial entity
[{'concept': 'political territorial entity'}, 'office held by head of government', 'mayor of Montemolín']
SELECT DISTINCT ?x WHERE { ?x property:office_held_by_head_of_government resource:mayor_of_Montemolín . ?x rdf:type ontology:political_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1372801
P6
Q502895
USER
Which person is that political territory the head of goverment of ?
(Q1372801,P6,c(Q502895))
action filter_type
action find
entity Q1372801
relation P6
type Q502895
['Q1372801', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?q WHERE { resource:Q1372801 property:P6 ?q . ?q rdf:type ontology:Q502895 }
Montemolín
action filter_type
action find
entity Montemolín
relation head of government
type common name
['Montemolín', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?q WHERE { resource:Montemolín property:head_of_government ?q . ?q rdf:type ontology:common_name }
[]
common name
Q14033671
SYSTEM
Juan Elías Megías Castillón
Q14033671
(Q1372801,P6,c(Q502895))
action filter_type
action find
entity Q1372801
relation P6
type Q502895
[ANSWER] is that political territory the head of goverment of
['Q1372801', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?q WHERE { resource:Q1372801 property:P6 ?q . ?q rdf:type ontology:Q502895 }
Juan Elías Megías Castillón
Juan Elías Megías Castillón is that political territory the head of goverment of
Juan Elías Megías Castillón
action filter_type
action find
entity Montemolín
relation head of government
type common name
['Montemolín', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?q WHERE { resource:Montemolín property:head_of_government ?q . ?q rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q14033671 Q15724202 Q29
P27
Q15617994
USER
Is Juan Elías Megías Castillón a native of Dabugam and Spain ?
(Q14033671,P27,Q15724202) (Q14033671,P27,Q29)
action is_in
entity Q14033671
action intersection
action find_reverse
entity Q15724202
relation P27
action find_reverse
entity Q29
relation P27
['Q14033671', 'P27', 'Q15724202'] ['Q14033671', 'P27', 'Q29']
ASK WHERE { resource:Q14033671 property:P27 resource:Q29 . resource:Q14033671 property:P27 resource:Q15724202 }
Juan Elías Megías Castillón Dabugam Spain
action is_in
entity Juan Elías Megías Castillón
action intersection
action find_reverse
entity Dabugam
relation country of citizenship
action find_reverse
entity Spain
relation country of citizenship
['Juan Elías Megías Castillón', 'country of citizenship', 'Dabugam'] ['Juan Elías Megías Castillón', 'country of citizenship', 'Spain']
ASK WHERE { resource:Juan_Elías_Megías_Castillón property:country_of_citizenship resource:Spain . resource:Juan_Elías_Megías_Castillón property:country_of_citizenship resource:Dabugam }
[]
designation for an administrative territorial entity
SYSTEM
NO and YES respectively
(Q14033671,P27,Q15724202) (Q14033671,P27,Q29)
action is_in
entity Q14033671
action intersection
action find_reverse
entity Q15724202
relation P27
action find_reverse
entity Q29
relation P27
[ANSWER]
['Q14033671', 'P27', 'Q15724202'] ['Q14033671', 'P27', 'Q29']
ASK WHERE { resource:Q14033671 property:P27 resource:Q29 . resource:Q14033671 property:P27 resource:Q15724202 }
NO and YES respectively
action is_in
entity Juan Elías Megías Castillón
action intersection
action find_reverse
entity Dabugam
relation country of citizenship
action find_reverse
entity Spain
relation country of citizenship
['Juan Elías Megías Castillón', 'country of citizenship', 'Dabugam'] ['Juan Elías Megías Castillón', 'country of citizenship', 'Spain']
ASK WHERE { resource:Juan_Elías_Megías_Castillón property:country_of_citizenship resource:Spain . resource:Juan_Elías_Megías_Castillón property:country_of_citizenship resource:Dabugam }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q145
P532
Q2235308
USER
Which ship type has its base port as United Kingdom ?
(c(Q2235308),P532,Q145)
action filter_type
action find_reverse
entity Q145
relation P532
type Q2235308
[{'concept': 'Q2235308'}, 'P532', 'Q145']
SELECT DISTINCT ?g WHERE { ?g property:P532 resource:Q145 . ?g rdf:type ontology:Q2235308 }
United Kingdom
action filter_type
action find_reverse
entity United Kingdom
relation port of registry
type ship type
[{'concept': 'ship type'}, 'port of registry', 'United Kingdom']
SELECT DISTINCT ?g WHERE { ?g property:port_of_registry resource:United_Kingdom . ?g rdf:type ontology:ship_type }
[]
ship type
Q7440002
SYSTEM
Sea Shepherd II
Q7440002
(c(Q2235308),P532,Q145)
action filter_type
action find_reverse
entity Q145
relation P532
type Q2235308
[ANSWER] has its base port as United Kingdom
[{'concept': 'Q2235308'}, 'P532', 'Q145']
SELECT DISTINCT ?g WHERE { ?g property:P532 resource:Q145 . ?g rdf:type ontology:Q2235308 }
Sea Shepherd II
Sea Shepherd II has its base port as United Kingdom
Sea Shepherd II
action filter_type
action find_reverse
entity United Kingdom
relation port of registry
type ship type
[{'concept': 'ship type'}, 'port of registry', 'United Kingdom']
SELECT DISTINCT ?g WHERE { ?g property:port_of_registry resource:United_Kingdom . ?g rdf:type ontology:ship_type }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q145
P194
Q1752346
USER
Which assembly is the representative body for United Kingdom ?
(Q145,P194,c(Q1752346))
action filter_type
action find
entity Q145
relation P194
type Q1752346
['Q145', 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q1752346 . resource:Q145 property:P194 ?e }
United Kingdom
action filter_type
action find
entity United Kingdom
relation legislative body
type assembly
['United Kingdom', 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:assembly . resource:United_Kingdom property:legislative_body ?e }
[]
assembly
Q11010
SYSTEM
Parliament of the United Kingdom
Q11010
(Q145,P194,c(Q1752346))
action filter_type
action find
entity Q145
relation P194
type Q1752346
The [ANSWER] is the representative body for United Kingdom
['Q145', 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q1752346 . resource:Q145 property:P194 ?e }
Parliament of the United Kingdom
The Parliament of the United Kingdom is the representative body for United Kingdom
Parliament of the United Kingdom
action filter_type
action find
entity United Kingdom
relation legislative body
type assembly
['United Kingdom', 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:assembly . resource:United_Kingdom property:legislative_body ?e }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q756617
Q1752346
USER
And what about Kingdom of Denmark?
(Q756617,P194,c(Q1752346))
action filter_type
action find
entity Q756617
relation P194
type Q1752346
['Q756617', 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q1752346 . resource:Q756617 property:P194 ?a }
Kingdom of Denmark
action filter_type
action find
entity Kingdom of Denmark
relation legislative body
type assembly
['Kingdom of Denmark', 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:assembly . resource:Kingdom_of_Denmark property:legislative_body ?a }
[]
assembly
Q209151
SYSTEM
Folketing
Q209151
(Q756617,P194,c(Q1752346))
action filter_type
action find
entity Q756617
relation P194
type Q1752346
[ANSWER]
['Q756617', 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q1752346 . resource:Q756617 property:P194 ?a }
Folketing
Folketing
action filter_type
action find
entity Kingdom of Denmark
relation legislative body
type assembly
['Kingdom of Denmark', 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:assembly . resource:Kingdom_of_Denmark property:legislative_body ?a }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q209151
P1001
Q1048835
USER
Which political territory comes under the jurisdiction of that assembly ?
(Q209151,P1001,c(Q1048835))
action filter_type
action find
entity Q209151
relation P1001
type Q1048835
['Q209151', 'P1001', {'concept': 'Q1048835'}]
SELECT DISTINCT ?b WHERE { resource:Q209151 property:P1001 ?b . ?b rdf:type ontology:Q1048835 }
Folketing
action filter_type
action find
entity Folketing
relation applies to jurisdiction
type political territorial entity
['Folketing', 'applies to jurisdiction', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?b WHERE { resource:Folketing property:applies_to_jurisdiction ?b . ?b rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q35
SYSTEM
Denmark
Q35
(Q209151,P1001,c(Q1048835))
action filter_type
action find
entity Q209151
relation P1001
type Q1048835
[ANSWER] comes under the jurisdiction of that assembly
['Q209151', 'P1001', {'concept': 'Q1048835'}]
SELECT DISTINCT ?b WHERE { resource:Q209151 property:P1001 ?b . ?b rdf:type ontology:Q1048835 }
Denmark
Denmark comes under the jurisdiction of that assembly
Denmark
action filter_type
action find
entity Folketing
relation applies to jurisdiction
type political territorial entity
['Folketing', 'applies to jurisdiction', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?b WHERE { resource:Folketing property:applies_to_jurisdiction ?b . ?b rdf:type ontology:political_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q209151
P1344
Q1656682
USER
Which event did Folketing take part in ?
(Q209151,P1344,c(Q1656682))
action filter_type
action find
entity Q209151
relation P1344
type Q1656682
['Q209151', 'P1344', {'concept': 'Q1656682'}]
SELECT DISTINCT ?b WHERE { resource:Q209151 property:P1344 ?b . ?b rdf:type ontology:Q1656682 }
Folketing
action filter_type
action find
entity Folketing
relation participant of
type event
['Folketing', 'participant of', {'concept': 'event'}]
SELECT DISTINCT ?b WHERE { resource:Folketing property:participant_of ?b . ?b rdf:type ontology:event }
[]
event
Q24632656
SYSTEM
The People's Meeting 2016
Q24632656
(Q209151,P1344,c(Q1656682))
action filter_type
action find
entity Q209151
relation P1344
type Q1656682
Folketing took part in [ANSWER]
['Q209151', 'P1344', {'concept': 'Q1656682'}]
SELECT DISTINCT ?b WHERE { resource:Q209151 property:P1344 ?b . ?b rdf:type ontology:Q1656682 }
The People's Meeting 2016
Folketing took part in The People's Meeting 2016
The People's Meeting 2016
action filter_type
action find
entity Folketing
relation participant of
type event
['Folketing', 'participant of', {'concept': 'event'}]
SELECT DISTINCT ?b WHERE { resource:Folketing property:participant_of ?b . ?b rdf:type ontology:event }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q46264
P138
Q2235308 Q15324 Q2088357
USER
Which ship types are more number of bodies of water and musical ensembles named after than HNLMS Tromp ?
(c(Q15324)|c(Q2088357),P138,c(Q2235308))
action greater
action union
action find_reverse_tuple_counts
relation P138
type Q2235308
type Q15324
action find_reverse_tuple_counts
relation P138
type Q2235308
type Q2088357
action count
action filter_multi_types
action find_reverse
entity Q46264
relation P138
type Q15324
type Q2088357
[[{'concept': 'Q15324'}, {'concept': 'Q2088357'}], 'P138', {'concept': 'Q2235308'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?p ) WHERE { ?w property:P138 resource:Q46264 . { VALUES ( ?z ) { ( ontology:Q15324 ) ( ontology:Q2088357 ) } . ?w rdf:type ?z } } } . FILTER ( ?v > ?p ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?v ) ?s WHERE { ?i rdf:type ?u . VALUES ( ?u ) { ( ontology:Q15324 ) ( ontology:Q2088357 ) } } GROUP BY ?s } }
HNLMS Tromp
action greater
action union
action find_reverse_tuple_counts
relation named after
type ship type
type body of water
action find_reverse_tuple_counts
relation named after
type ship type
type musical ensemble
action count
action filter_multi_types
action find_reverse
entity HNLMS Tromp
relation named after
type body of water
type musical ensemble
[[{'concept': 'body of water'}, {'concept': 'musical ensemble'}], 'named after', {'concept': 'ship type'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?p ) WHERE { ?w property:named_after resource:HNLMS_Tromp . { VALUES ( ?z ) { ( ontology:body_of_water ) ( ontology:musical_ensemble ) } . ?w rdf:type ?z } } } . FILTER ( ?v > ?p ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?v ) ?s WHERE { ?i rdf:type ?u . VALUES ( ?u ) { ( ontology:body_of_water ) ( ontology:musical_ensemble ) } } GROUP BY ?s } }
[]
ship type body of water musical ensemble
Q35926 Q900379 Q673840
SYSTEM
HMS Beagle, HMS Bounty, Arktika
Q35926 Q900379 Q512615 Q141667 Q11679476 Q673840 Q1117331
(c(Q15324)|c(Q2088357),P138,c(Q2235308))
action greater
action union
action find_reverse_tuple_counts
relation P138
type Q2235308
type Q15324
action find_reverse_tuple_counts
relation P138
type Q2235308
type Q2088357
action count
action filter_multi_types
action find_reverse
entity Q46264
relation P138
type Q15324
type Q2088357
[ANSWERS] are more number of bodies of water and musical ensembles named after than HNLMS Tromp
[[{'concept': 'Q15324'}, {'concept': 'Q2088357'}], 'P138', {'concept': 'Q2235308'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?p ) WHERE { ?w property:P138 resource:Q46264 . { VALUES ( ?z ) { ( ontology:Q15324 ) ( ontology:Q2088357 ) } . ?w rdf:type ?z } } } . FILTER ( ?v > ?p ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?v ) ?s WHERE { ?i rdf:type ?u . VALUES ( ?u ) { ( ontology:Q15324 ) ( ontology:Q2088357 ) } } GROUP BY ?s } }
HMS Beagle HMS Bounty HMS Erebus HMS Terror USS Merrick Arktika Nimrod
HMS Beagle, HMS Bounty and Arktika are more number of bodies of water and musical ensembles named after than HNLMS Tromp
HMS Beagle HMS Bounty Arktika
action greater
action union
action find_reverse_tuple_counts
relation named after
type ship type
type body of water
action find_reverse_tuple_counts
relation named after
type ship type
type musical ensemble
action count
action filter_multi_types
action find_reverse
entity HNLMS Tromp
relation named after
type body of water
type musical ensemble
[[{'concept': 'body of water'}, {'concept': 'musical ensemble'}], 'named after', {'concept': 'ship type'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?p ) WHERE { ?w property:named_after resource:HNLMS_Tromp . { VALUES ( ?z ) { ( ontology:body_of_water ) ( ontology:musical_ensemble ) } . ?w rdf:type ?z } } } . FILTER ( ?v > ?p ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?v ) ?s WHERE { ?i rdf:type ?u . VALUES ( ?u ) { ( ontology:body_of_water ) ( ontology:musical_ensemble ) } } GROUP BY ?s } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q839203
P138
Q2235308 Q15324 Q2088357
USER
And also tell me about HMS Birmingham?
(c(Q15324)|c(Q2088357),P138,c(Q2235308))
action greater
action union
action find_reverse_tuple_counts
relation P138
type Q2235308
type Q15324
action find_reverse_tuple_counts
relation P138
type Q2235308
type Q2088357
action count
action filter_multi_types
action find_reverse
entity Q839203
relation P138
type Q15324
type Q2088357
[[{'concept': 'Q15324'}, {'concept': 'Q2088357'}], 'P138', {'concept': 'Q2235308'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?x ) AS ?p ) WHERE { { ?x property:P138 ?n . ?n rdf:type ontology:Q2235308 . ?x rdf:type ontology:Q2088357 } UNION { ?x property:P138 ?n . ?n rdf:type ontology:Q2235308 . ?x rdf:type ontology:Q15324 } } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?t ) WHERE { ?i property:P138 resource:Q839203 . { { ?i rdf:type ontology:Q15324 } UNION { ?i rdf:type ontology:Q2088357 } } } } . FILTER ( ?p > ?t ) }
HMS Birmingham
action greater
action union
action find_reverse_tuple_counts
relation named after
type ship type
type body of water
action find_reverse_tuple_counts
relation named after
type ship type
type musical ensemble
action count
action filter_multi_types
action find_reverse
entity HMS Birmingham
relation named after
type body of water
type musical ensemble
[[{'concept': 'body of water'}, {'concept': 'musical ensemble'}], 'named after', {'concept': 'ship type'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?x ) AS ?p ) WHERE { { ?x property:named_after ?n . ?n rdf:type ontology:ship_type . ?x rdf:type ontology:musical_ensemble } UNION { ?x property:named_after ?n . ?n rdf:type ontology:ship_type . ?x rdf:type ontology:body_of_water } } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?t ) WHERE { ?i property:named_after resource:HMS_Birmingham . { { ?i rdf:type ontology:body_of_water } UNION { ?i rdf:type ontology:musical_ensemble } } } } . FILTER ( ?p > ?t ) }
[]
ship type body of water musical ensemble
Q35926 Q900379 Q673840
SYSTEM
HMS Beagle, HMS Bounty, Arktika
Q35926 Q900379 Q512615 Q141667 Q11679476 Q673840 Q1117331
(c(Q15324)|c(Q2088357),P138,c(Q2235308))
action greater
action union
action find_reverse_tuple_counts
relation P138
type Q2235308
type Q15324
action find_reverse_tuple_counts
relation P138
type Q2235308
type Q2088357
action count
action filter_multi_types
action find_reverse
entity Q839203
relation P138
type Q15324
type Q2088357
[ANSWERS]
[[{'concept': 'Q15324'}, {'concept': 'Q2088357'}], 'P138', {'concept': 'Q2235308'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?x ) AS ?p ) WHERE { { ?x property:P138 ?n . ?n rdf:type ontology:Q2235308 . ?x rdf:type ontology:Q2088357 } UNION { ?x property:P138 ?n . ?n rdf:type ontology:Q2235308 . ?x rdf:type ontology:Q15324 } } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?t ) WHERE { ?i property:P138 resource:Q839203 . { { ?i rdf:type ontology:Q15324 } UNION { ?i rdf:type ontology:Q2088357 } } } } . FILTER ( ?p > ?t ) }
HMS Beagle HMS Bounty HMS Erebus HMS Terror USS Merrick Arktika Nimrod
HMS Beagle HMS Bounty Arktika
action greater
action union
action find_reverse_tuple_counts
relation named after
type ship type
type body of water
action find_reverse_tuple_counts
relation named after
type ship type
type musical ensemble
action count
action filter_multi_types
action find_reverse
entity HMS Birmingham
relation named after
type body of water
type musical ensemble
[[{'concept': 'body of water'}, {'concept': 'musical ensemble'}], 'named after', {'concept': 'ship type'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?x ) AS ?p ) WHERE { { ?x property:named_after ?n . ?n rdf:type ontology:ship_type . ?x rdf:type ontology:musical_ensemble } UNION { ?x property:named_after ?n . ?n rdf:type ontology:ship_type . ?x rdf:type ontology:body_of_water } } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?t ) WHERE { ?i property:named_after resource:HMS_Birmingham . { { ?i rdf:type ontology:body_of_water } UNION { ?i rdf:type ontology:musical_ensemble } } } } . FILTER ( ?p > ?t ) }
[]