Simple Question (Direct)
Simple Question
Q7635960
P106
Q12737077
USER
What does Sulaiman Al Mazroui do for a living ?
(Q7635960,P106,c(Q12737077))
action filter_type
action find
entity Q7635960
relation P106
type Q12737077
['Q7635960', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?o WHERE { resource:Q7635960 property:P106 ?o . ?o rdf:type ontology:Q12737077 }
Sulaiman Al Mazroui
action filter_type
action find
entity Sulaiman Al Mazroui
relation occupation
type occupation
['Sulaiman Al Mazroui', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?o WHERE { resource:Sulaiman_Al_Mazroui property:occupation ?o . ?o rdf:type ontology:occupation }
[]
occupation
Q937857
SYSTEM
association football player
Q937857
(Q7635960,P106,c(Q12737077))
action filter_type
action find
entity Q7635960
relation P106
type Q12737077
Sulaiman Al Mazroui does an [ANSWER] for a living
['Q7635960', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?o WHERE { resource:Q7635960 property:P106 ?o . ?o rdf:type ontology:Q12737077 }
association football player
Sulaiman Al Mazroui does an association football player for a living
association football player
action filter_type
action find
entity Sulaiman Al Mazroui
relation occupation
type occupation
['Sulaiman Al Mazroui', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?o WHERE { resource:Sulaiman_Al_Mazroui property:occupation ?o . ?o rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q937857
P425
Q349
USER
Which sport has that one as the associated field of occupation ?
(Q937857,P425,c(Q349))
action filter_type
action find
entity Q937857
relation P425
type Q349
['Q937857', 'P425', {'concept': 'Q349'}]
SELECT DISTINCT ?r WHERE { resource:Q937857 property:P425 ?r . ?r rdf:type ontology:Q349 }
association football player
action filter_type
action find
entity association football player
relation field of this occupation
type sport
['association football player', 'field of this occupation', {'concept': 'sport'}]
SELECT DISTINCT ?r WHERE { resource:association_football_player property:field_of_this_occupation ?r . ?r rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q937857,P425,c(Q349))
action filter_type
action find
entity Q937857
relation P425
type Q349
[ANSWER] has that one as the associated field of occupation
['Q937857', 'P425', {'concept': 'Q349'}]
SELECT DISTINCT ?r WHERE { resource:Q937857 property:P425 ?r . ?r rdf:type ontology:Q349 }
association football
Association football has that one as the associated field of occupation
association football
action filter_type
action find
entity association football player
relation field of this occupation
type sport
['association football player', 'field of this occupation', {'concept': 'sport'}]
SELECT DISTINCT ?r WHERE { resource:association_football_player property:field_of_this_occupation ?r . ?r rdf:type ontology:sport }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2736
P2416
Q502895
USER
Who were a contestant in that sport ?
(c(Q502895),P2416,Q2736)
action filter_type
action find_reverse
entity Q2736
relation P2416
type Q502895
[{'concept': 'Q502895'}, 'P2416', 'Q2736']
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q502895 . ?e property:P2416 resource:Q2736 }
association football
action filter_type
action find_reverse
entity association football
relation sports discipline competed in
type common name
[{'concept': 'common name'}, 'sports discipline competed in', 'association football']
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:common_name . ?e property:sports_discipline_competed_in resource:association_football }
[]
common name
Q22998602 Q3939068 Q1975921
SYSTEM
Maximilian Mittelstädt, Roberto Policano, Agustín Gómez Pagóla
Q23902692 Q3939068 Q22687929 Q22998602 Q877207 Q1975921 Q23095388 Q24006307
(c(Q502895),P2416,Q2736)
action filter_type
action find_reverse
entity Q2736
relation P2416
type Q502895
[ANSWERS] were a contestant in that sport
[{'concept': 'Q502895'}, 'P2416', 'Q2736']
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q502895 . ?e property:P2416 resource:Q2736 }
Florian Kohls Roberto Policano Pedro Confesor Maximilian Mittelstädt Horst Bertram Agustín Gómez Pagóla Eberhard Dallagrazia Lion Schweers
Maximilian Mittelstädt, Roberto Policano and Agustín Gómez Pagóla were a contestant in that sport
Maximilian Mittelstädt Roberto Policano Agustín Gómez Pagóla
action filter_type
action find_reverse
entity association football
relation sports discipline competed in
type common name
[{'concept': 'common name'}, 'sports discipline competed in', 'association football']
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:common_name . ?e property:sports_discipline_competed_in resource:association_football }
[]
Clarification
Simple Question|Single Entity|Indirect
Q22998602
P551
Q56061
USER
Which administrative territory was the place of residence of that person ?
(Q22998602,P551,c(Q56061))
action filter_type
action find
entity Q22998602
relation P551
type Q56061
['Q22998602', 'P551', {'concept': 'Q56061'}]
SELECT DISTINCT ?s WHERE { resource:Q22998602 property:P551 ?s . ?s rdf:type ontology:Q56061 }
Maximilian Mittelstädt
action filter_type
action find
entity Maximilian Mittelstädt
relation residence
type administrative territorial entity
['Maximilian Mittelstädt', 'residence', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Maximilian_Mittelstädt property:residence ?s . ?s rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Clarification for simple ques.
Q3939068
SYSTEM
Did you mean Roberto Policano ?
Q22998602 Q3939068 Q1975921
(Q22998602,P551,c(Q56061)) (Q3939068,P551,c(Q56061)) (Q1975921,P551,c(Q56061))
[ANSWER]
['Q22998602', 'P551', {'concept': 'Q56061'}] ['Q3939068', 'P551', {'concept': 'Q56061'}] ['Q1975921', 'P551', {'concept': 'Q56061'}]
SELECT DISTINCT ?s WHERE { resource:Q22998602 property:P551 ?s . ?s rdf:type ontology:Q56061 }
Maximilian Mittelstädt Roberto Policano Agustín Gómez Pagóla
Did you mean Roberto Policano ?
Roberto Policano
['Maximilian Mittelstädt', 'residence', {'concept': 'administrative territorial entity'}] ['Roberto Policano', 'residence', {'concept': 'administrative territorial entity'}] ['Agustín Gómez Pagóla', 'residence', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Maximilian_Mittelstädt property:residence ?s . ?s rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
USER
No, I meant Maximilian Mittelstädt. Could you tell me the answer for that?
(Q22998602,P551,c(Q56061))
Q22998602
['Q22998602', 'P551', {'concept': 'Q56061'}]
['Maximilian Mittelstädt', 'residence', {'concept': 'administrative territorial entity'}]
[]
Q64
SYSTEM
Berlin
Q64
(Q22998602,P551,c(Q56061))
action filter_type
action find
entity Q22998602
relation P551
type Q56061
[ANSWER] was the place of residence of that person
['Q22998602', 'P551', {'concept': 'Q56061'}]
SELECT DISTINCT ?s WHERE { resource:Q22998602 property:P551 ?s . ?s rdf:type ontology:Q56061 }
Berlin
Berlin was the place of residence of that person
Berlin
action filter_type
action find
entity Maximilian Mittelstädt
relation residence
type administrative territorial entity
['Maximilian Mittelstädt', 'residence', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Maximilian_Mittelstädt property:residence ?s . ?s rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q1255609 Q22998602
P19 P937
Q56061
USER
Which administrative territories were Maximilian Mittelstädt born at and are the work locations of Gustav Herrmann ?
AND((Q22998602,P19,c(Q56061)), (Q1255609,P937,c(Q56061)))
action filter_type
action intersection
action find
entity Q22998602
relation P19
action find
entity Q1255609
relation P937
type Q56061
{'AND': [['Q22998602', 'P19', {'concept': 'Q56061'}], ['Q1255609', 'P937', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q56061 . resource:Q1255609 property:P937 ?g . resource:Q22998602 property:P19 ?g }
Gustav Herrmann Maximilian Mittelstädt
action filter_type
action intersection
action find
entity Maximilian Mittelstädt
relation place of birth
action find
entity Gustav Herrmann
relation work location
type administrative territorial entity
{'AND': [['Maximilian Mittelstädt', 'place of birth', {'concept': 'administrative territorial entity'}], ['Gustav Herrmann', 'work location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:administrative_territorial_entity . resource:Gustav_Herrmann property:work_location ?g . resource:Maximilian_Mittelstädt property:place_of_birth ?g }
[]
administrative territorial entity
Q64
SYSTEM
Berlin
Q64
AND((Q22998602,P19,c(Q56061)), (Q1255609,P937,c(Q56061)))
action filter_type
action intersection
action find
entity Q22998602
relation P19
action find
entity Q1255609
relation P937
type Q56061
Maximilian Mittelstädt were born in [ANSWER] and are the work locations of Gustav Herrmann
{'AND': [['Q22998602', 'P19', {'concept': 'Q56061'}], ['Q1255609', 'P937', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q56061 . resource:Q1255609 property:P937 ?g . resource:Q22998602 property:P19 ?g }
Berlin
Maximilian Mittelstädt were born in Berlin and are the work locations of Gustav Herrmann
Berlin
action filter_type
action intersection
action find
entity Maximilian Mittelstädt
relation place of birth
action find
entity Gustav Herrmann
relation work location
type administrative territorial entity
{'AND': [['Maximilian Mittelstädt', 'place of birth', {'concept': 'administrative territorial entity'}], ['Gustav Herrmann', 'work location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:administrative_territorial_entity . resource:Gustav_Herrmann property:work_location ?g . resource:Maximilian_Mittelstädt property:place_of_birth ?g }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q12306050 Q22998602
P27
Q1048835
USER
Which political territories are Maximilian Mittelstädt or Christian Kølle a civilian of ?
OR((Q22998602,P27,c(Q1048835)), (Q12306050,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q22998602
relation P27
action find
entity Q12306050
relation P27
type Q1048835
{'OR': [['Q22998602', 'P27', {'concept': 'Q1048835'}], ['Q12306050', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?x WHERE { { VALUES ( ?g ) { ( resource:Q22998602 ) ( resource:Q12306050 ) } . ?g property:P27 ?x } . ?x rdf:type ontology:Q1048835 }
Christian Kølle Maximilian Mittelstädt
action filter_type
action union
action find
entity Maximilian Mittelstädt
relation country of citizenship
action find
entity Christian Kølle
relation country of citizenship
type political territorial entity
{'OR': [['Maximilian Mittelstädt', 'country of citizenship', {'concept': 'political territorial entity'}], ['Christian Kølle', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?x WHERE { { VALUES ( ?g ) { ( resource:Maximilian_Mittelstädt ) ( resource:Christian_Kølle ) } . ?g property:country_of_citizenship ?x } . ?x rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183 Q35
SYSTEM
Germany, Denmark
Q183 Q35
OR((Q22998602,P27,c(Q1048835)), (Q12306050,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q22998602
relation P27
action find
entity Q12306050
relation P27
type Q1048835
[ANSWERS] are Maximilian Mittelstädt or Christian Kølle a civilian of
{'OR': [['Q22998602', 'P27', {'concept': 'Q1048835'}], ['Q12306050', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?x WHERE { { VALUES ( ?g ) { ( resource:Q22998602 ) ( resource:Q12306050 ) } . ?g property:P27 ?x } . ?x rdf:type ontology:Q1048835 }
Germany Denmark
Germany and Denmark are Maximilian Mittelstädt or Christian Kølle a civilian of
Germany Denmark
action filter_type
action union
action find
entity Maximilian Mittelstädt
relation country of citizenship
action find
entity Christian Kølle
relation country of citizenship
type political territorial entity
{'OR': [['Maximilian Mittelstädt', 'country of citizenship', {'concept': 'political territorial entity'}], ['Christian Kølle', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?x WHERE { { VALUES ( ?g ) { ( resource:Maximilian_Mittelstädt ) ( resource:Christian_Kølle ) } . ?g property:country_of_citizenship ?x } . ?x rdf:type ontology:political_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q20630763
P495
Q838948
USER
Did The Yes Men Are Revolting originate in those political territories ?
(Q20630763,P495,Q183) (Q20630763,P495,Q35)
action is_in
entity prev_answer
action find
entity Q20630763
relation P495
['Q20630763', 'P495', 'Q183'] ['Q20630763', 'P495', 'Q35']
ASK WHERE { resource:Q20630763 property:P495 ?s . VALUES ( ?s ) { ( resource:Q183 ) ( resource:Q35 ) } }
The Yes Men Are Revolting
action is_in
entity prev_answer
action find
entity The Yes Men Are Revolting
relation country of origin
['The Yes Men Are Revolting', 'country of origin', 'Germany'] ['The Yes Men Are Revolting', 'country of origin', 'Denmark']
ASK WHERE { resource:The_Yes_Men_Are_Revolting property:country_of_origin ?s . VALUES ( ?s ) { ( resource:Germany ) ( resource:Denmark ) } }
[]
work of art
SYSTEM
YES
(Q20630763,P495,Q183) (Q20630763,P495,Q35)
action is_in
entity prev_answer
action find
entity Q20630763
relation P495
[ANSWER]
['Q20630763', 'P495', 'Q183'] ['Q20630763', 'P495', 'Q35']
ASK WHERE { resource:Q20630763 property:P495 ?s . VALUES ( ?s ) { ( resource:Q183 ) ( resource:Q35 ) } }
Yes
action is_in
entity prev_answer
action find
entity The Yes Men Are Revolting
relation country of origin
['The Yes Men Are Revolting', 'country of origin', 'Germany'] ['The Yes Men Are Revolting', 'country of origin', 'Denmark']
ASK WHERE { resource:The_Yes_Men_Are_Revolting property:country_of_origin ?s . VALUES ( ?s ) { ( resource:Germany ) ( resource:Denmark ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q183
P706
Q151885
USER
Which concept is located in Germany ?
(c(Q151885),P706,Q183)
action filter_type
action find_reverse
entity Q183
relation P706
type Q151885
[{'concept': 'Q151885'}, 'P706', 'Q183']
SELECT DISTINCT ?i WHERE { ?i property:P706 resource:Q183 . ?i rdf:type ontology:Q151885 }
Germany
action filter_type
action find_reverse
entity Germany
relation located on terrain feature
type concept
[{'concept': 'concept'}, 'located on terrain feature', 'Germany']
SELECT DISTINCT ?i WHERE { ?i property:located_on_terrain_feature resource:Germany . ?i rdf:type ontology:concept }
[]
concept
Q611017
SYSTEM
Lusatian culture
Q611017
(c(Q151885),P706,Q183)
action filter_type
action find_reverse
entity Q183
relation P706
type Q151885
[ANSWER] is located in Germany
[{'concept': 'Q151885'}, 'P706', 'Q183']
SELECT DISTINCT ?i WHERE { ?i property:P706 resource:Q183 . ?i rdf:type ontology:Q151885 }
Lusatian culture
Lusatian culture is located in Germany
Lusatian culture
action filter_type
action find_reverse
entity Germany
relation located on terrain feature
type concept
[{'concept': 'concept'}, 'located on terrain feature', 'Germany']
SELECT DISTINCT ?i WHERE { ?i property:located_on_terrain_feature resource:Germany . ?i rdf:type ontology:concept }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q64
P194
Q1752346
USER
Which assembly is the legislative body for Berlin ?
(Q64,P194,c(Q1752346))
action filter_type
action find
entity Q64
relation P194
type Q1752346
['Q64', 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q1752346 . resource:Q64 property:P194 ?g }
Berlin
action filter_type
action find
entity Berlin
relation legislative body
type assembly
['Berlin', 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:assembly . resource:Berlin property:legislative_body ?g }
[]
assembly
Q640859
SYSTEM
Abgeordnetenhaus of Berlin
Q640859
(Q64,P194,c(Q1752346))
action filter_type
action find
entity Q64
relation P194
type Q1752346
Berlin [ANSWER] is the legislative body for Berlin
['Q64', 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q1752346 . resource:Q64 property:P194 ?g }
Abgeordnetenhaus of Berlin
Berlin Abgeordnetenhaus of Berlin is the legislative body for Berlin
Abgeordnetenhaus of Berlin
action filter_type
action find
entity Berlin
relation legislative body
type assembly
['Berlin', 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:assembly . resource:Berlin property:legislative_body ?g }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q649
Q1752346
USER
And how about Moscow?
(Q649,P194,c(Q1752346))
action filter_type
action find
entity Q649
relation P194
type Q1752346
['Q649', 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?n WHERE { resource:Q649 property:P194 ?n . ?n rdf:type ontology:Q1752346 }
Moscow
action filter_type
action find
entity Moscow
relation legislative body
type assembly
['Moscow', 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?n WHERE { resource:Moscow property:legislative_body ?n . ?n rdf:type ontology:assembly }
[]
assembly
Q2041767
SYSTEM
Moscow City Duma
Q2041767
(Q649,P194,c(Q1752346))
action filter_type
action find
entity Q649
relation P194
type Q1752346
[ANSWER]
['Q649', 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?n WHERE { resource:Q649 property:P194 ?n . ?n rdf:type ontology:Q1752346 }
Moscow City Duma
Moscow City Duma
action filter_type
action find
entity Moscow
relation legislative body
type assembly
['Moscow', 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?n WHERE { resource:Moscow property:legislative_body ?n . ?n rdf:type ontology:assembly }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q35
P6
Q502895
USER
How many people are Denmark the head of goverment of ?
(Q35,P6,c(Q502895))
action count
action filter_type
action find
entity Q35
relation P6
type Q502895
['Q35', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?z ) WHERE { resource:Q35 property:P6 ?a . ?a rdf:type ontology:Q502895 }
Denmark
action count
action filter_type
action find
entity Denmark
relation head of government
type common name
['Denmark', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?z ) WHERE { resource:Denmark property:head_of_government ?a . ?a rdf:type ontology:common_name }
[]
common name
SYSTEM
41
Q441330 Q1040851 Q1037599 Q966436 Q918287 Q57652 Q503087 Q725118 Q264340 Q727237 Q1634992 Q1274220 Q782403 Q351178 Q367557 Q1375737 Q1343866 Q491280 Q721358 Q1375094 Q1343877 Q312881 Q46052 Q1335084 Q1744787 Q1576188 Q182397 Q327190 Q348901 Q572189 Q664052 Q710950 Q311063 Q1874069 Q947789 Q591189 Q1375050 Q947911 Q694093 Q731504 Q982328
(Q35,P6,c(Q502895))
action count
action filter_type
action find
entity Q35
relation P6
type Q502895
[ANSWER]
['Q35', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?z ) WHERE { resource:Q35 property:P6 ?a . ?a rdf:type ontology:Q502895 }
Jens Otto Krag Carl Theodor Zahle Carl Edvard Rotwitt Christen Andreas Fonnesbech Viggo Kampmann Helle Thorning-Schmidt Hans Hedtoft Carl Christian Hall Klaus Berntsen Hilmar Baunsgaard Hugo Egmont Hørring Jens Christian Christensen Christian Emil Krag-Juel-Vind-Frijs Adam Wilhelm Moltke Thorvald Stauning Michael Pedersen Friis Ludvig Holstein-Holsteinborg Anders Sandøe Ørsted H. C. Hansen Niels Neergaard Jacob Brønnum Scavenius Estrup Anker Jørgensen Anders Fogh Rasmussen Knud Kristensen Otto Liebe Hannibal Sehested Lars Løkke Rasmussen Poul Schlüter Poul Hartling Johan Henrik Deuntzer Vilhelm Buhl Erik Eriksen Poul Nyrup Rasmussen Ludvig Holstein-Ledreborg Carl Christoffer Georg Andræ Peter Georg Bang Tage Reedtz-Thott Christian Albrecht Bluhme Ditlev Gothard Monrad Erik Scavenius Thomas Madsen-Mygdal
41
action count
action filter_type
action find
entity Denmark
relation head of government
type common name
['Denmark', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?z ) WHERE { resource:Denmark property:head_of_government ?a . ?a rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Incomplete
Q1767516
P6
Q502895
USER
And what about Villaescusa de Haro?
(Q1767516,P6,c(Q502895))
action count
action filter_type
action find
entity Q1767516
relation P6
type Q502895
['Q1767516', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?t ) WHERE { resource:Q1767516 property:P6 ?n . ?n rdf:type ontology:Q502895 }
Villaescusa de Haro
action count
action filter_type
action find
entity Villaescusa de Haro
relation head of government
type common name
['Villaescusa de Haro', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?t ) WHERE { resource:Villaescusa_de_Haro property:head_of_government ?n . ?n rdf:type ontology:common_name }
[]
common name
SYSTEM
1
Q14073477
(Q1767516,P6,c(Q502895))
action count
action filter_type
action find
entity Q1767516
relation P6
type Q502895
[ANSWER]
['Q1767516', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?t ) WHERE { resource:Q1767516 property:P6 ?n . ?n rdf:type ontology:Q502895 }
Cayetano Javier Solana Cipres
1
action count
action filter_type
action find
entity Villaescusa de Haro
relation head of government
type common name
['Villaescusa de Haro', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?t ) WHERE { resource:Villaescusa_de_Haro property:head_of_government ?n . ?n rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q34254
Q502895
USER
And how about Millares?
(Q34254,P6,c(Q502895))
action count
action filter_type
action find
entity Q34254
relation P6
type Q502895
['Q34254', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?o ) WHERE { resource:Q34254 property:P6 ?b . ?b rdf:type ontology:Q502895 }
Millares
action count
action filter_type
action find
entity Millares
relation head of government
type common name
['Millares', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?o ) WHERE { resource:Millares property:head_of_government ?b . ?b rdf:type ontology:common_name }
[]
common name
SYSTEM
1
(Q34254,P6,c(Q502895))
action count
action filter_type
action find
entity Q34254
relation P6
type Q502895
[ANSWER]
['Q34254', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?o ) WHERE { resource:Q34254 property:P6 ?b . ?b rdf:type ontology:Q502895 }
1
action count
action filter_type
action find
entity Millares
relation head of government
type common name
['Millares', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?o ) WHERE { resource:Millares property:head_of_government ?b . ?b rdf:type ontology:common_name }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P85
Q484692 Q7725634 Q1048835
USER
Which political territories have approximately 1 hymns or literary works as their anthem ?
(c(Q1048835),P85,c(Q484692)|c(Q7725634))
action approx
action union
action find_tuple_counts
relation P85
type Q1048835
type Q484692
action find_tuple_counts
relation P85
type Q1048835
type Q7725634
value 1
[{'concept': 'Q1048835'}, 'P85', [{'concept': 'Q484692'}, {'concept': 'Q7725634'}]]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?s ) AS ?t ) WHERE { ?s rdf:type ?j . VALUES ( ?j ) { ( ontology:Q7725634 ) ( ontology:Q484692 ) } } GROUP BY ?c } . FILTER ( ?t = 1 ) }
action approx
action union
action find_tuple_counts
relation anthem
type political territorial entity
type hymn
action find_tuple_counts
relation anthem
type political territorial entity
type literary work
value 1
[{'concept': 'political territorial entity'}, 'anthem', [{'concept': 'hymn'}, {'concept': 'literary work'}]]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?s ) AS ?t ) WHERE { ?s rdf:type ?j . VALUES ( ?j ) { ( ontology:literary_work ) ( ontology:hymn ) } } GROUP BY ?c } . FILTER ( ?t = 1 ) }
[]
hymn literary work political territorial entity
Q183 Q16 Q40
SYSTEM
Germany, Canada, Austria
Q1000 Q183 Q785 Q601252 Q193619 Q685 Q202023 Q763 Q664 Q9676 Q1054923 Q13353 Q5705 Q16 Q170604 Q5785 Q38610 Q3405693 Q18221 Q43448 Q778 Q5783 Q691 Q757 Q9648 Q234 Q35672 Q165783 Q40 Q35086 Q23635 Q192184 Q25228 Q31747 Q25305 Q129286 Q2594990
(c(Q1048835),P85,c(Q484692)|c(Q7725634))
action approx
action union
action find_tuple_counts
relation P85
type Q1048835
type Q484692
action find_tuple_counts
relation P85
type Q1048835
type Q7725634
value 1
[ANSWERS] have approximately 1 hymns or literary works as their anthem
[{'concept': 'Q1048835'}, 'P85', [{'concept': 'Q484692'}, {'concept': 'Q7725634'}]]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?s ) AS ?t ) WHERE { ?s rdf:type ?j . VALUES ( ?j ) { ( ontology:Q7725634 ) ( ontology:Q484692 ) } } GROUP BY ?c } . FILTER ( ?t = 1 ) }
Gabon Germany Jersey Banovina of Croatia Union of South Africa Solomon Islands Herm Saint Kitts and Nevis New Zealand Isle of Man British Hong Kong Montserrat Catalonia Canada New France Cayman Islands Dominion of Newfoundland Sark Turks and Caicos Islands British Indian Ocean Territory The Bahamas Andalusia Papua New Guinea Saint Vincent and the Grenadines Falkland Islands Flemish Region Pitcairn Islands British Antarctic Territory Austria South Georgia and the South Sandwich Islands Bermuda Saint Helena, Ascension and Tristan da Cunha Anguilla Irish Free State British Virgin Islands British Raj Dominion of New Zealand
Germany, Canada and Austria have approximately 1 hymns or literary works as their anthem
Germany Canada Austria
action approx
action union
action find_tuple_counts
relation anthem
type political territorial entity
type hymn
action find_tuple_counts
relation anthem
type political territorial entity
type literary work
value 1
[{'concept': 'political territorial entity'}, 'anthem', [{'concept': 'hymn'}, {'concept': 'literary work'}]]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?s ) AS ?t ) WHERE { ?s rdf:type ?j . VALUES ( ?j ) { ( ontology:literary_work ) ( ontology:hymn ) } } GROUP BY ?c } . FILTER ( ?t = 1 ) }
[]