Simple Question (Direct)
Simple Question
Q2641831
P937
Q56061
USER
Which is the work location of Alexander Bernstein, Baron Bernstein of Craigweil ?
(Q2641831,P937,c(Q56061))
action filter_type
action find
entity Q2641831
relation P937
type Q56061
['Q2641831', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?e WHERE { resource:Q2641831 property:P937 ?e . ?e rdf:type ontology:Q56061 }
Alexander Bernstein, Baron Bernstein of Craigweil
action filter_type
action find
entity Alexander Bernstein, Baron Bernstein of Craigweil
relation work location
type administrative territorial entity
['Alexander Bernstein, Baron Bernstein of Craigweil', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:Alexander_Bernstein,_Baron_Bernstein_of_Craigweil property:work_location ?e . ?e rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q84
SYSTEM
London
Q84
(Q2641831,P937,c(Q56061))
action filter_type
action find
entity Q2641831
relation P937
type Q56061
[ANSWER] is the work location of Alexander Bernstein, Baron Bernstein of Craigweil
['Q2641831', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?e WHERE { resource:Q2641831 property:P937 ?e . ?e rdf:type ontology:Q56061 }
London
London is the work location of Alexander Bernstein, Baron Bernstein of Craigweil
London
action filter_type
action find
entity Alexander Bernstein, Baron Bernstein of Craigweil
relation work location
type administrative territorial entity
['Alexander Bernstein, Baron Bernstein of Craigweil', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:Alexander_Bernstein,_Baron_Bernstein_of_Craigweil property:work_location ?e . ?e rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q84
P1313
Q12737077
USER
Which occupation serves as the political office that is fulfilled by the head of the government of that administrative territory ?
(Q84,P1313,c(Q12737077))
action filter_type
action find
entity Q84
relation P1313
type Q12737077
['Q84', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?t WHERE { resource:Q84 property:P1313 ?t . ?t rdf:type ontology:Q12737077 }
London
action filter_type
action find
entity London
relation office held by head of government
type occupation
['London', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?t WHERE { resource:London property:office_held_by_head_of_government ?t . ?t rdf:type ontology:occupation }
[]
occupation
Q38931
SYSTEM
Mayor of London
Q38931
(Q84,P1313,c(Q12737077))
action filter_type
action find
entity Q84
relation P1313
type Q12737077
The [ANSWER] serves as the political office that is fulfilled by the head of the government of that administrative territory
['Q84', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?t WHERE { resource:Q84 property:P1313 ?t . ?t rdf:type ontology:Q12737077 }
Mayor of London
The Mayor of London serves as the political office that is fulfilled by the head of the government of that administrative territory
Mayor of London
action filter_type
action find
entity London
relation office held by head of government
type occupation
['London', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?t WHERE { resource:London property:office_held_by_head_of_government ?t . ?t rdf:type ontology:occupation }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q1771909
Q12737077
USER
And what about Atea?
(Q1771909,P1313,c(Q12737077))
action filter_type
action find
entity Q1771909
relation P1313
type Q12737077
['Q1771909', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?e WHERE { resource:Q1771909 property:P1313 ?e . ?e rdf:type ontology:Q12737077 }
Atea
action filter_type
action find
entity Atea
relation office held by head of government
type occupation
['Atea', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?e WHERE { resource:Atea property:office_held_by_head_of_government ?e . ?e rdf:type ontology:occupation }
[]
occupation
Q26696554
SYSTEM
mayor of Atea
Q26696554
(Q1771909,P1313,c(Q12737077))
action filter_type
action find
entity Q1771909
relation P1313
type Q12737077
[ANSWER]
['Q1771909', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?e WHERE { resource:Q1771909 property:P1313 ?e . ?e rdf:type ontology:Q12737077 }
mayor of Atea
mayor of Atea
action filter_type
action find
entity Atea
relation office held by head of government
type occupation
['Atea', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?e WHERE { resource:Atea property:office_held_by_head_of_government ?e . ?e rdf:type ontology:occupation }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q26696554 Q26695575
P1313
Q1048835
USER
How many political territories have mayor of Atea or mayor of Vega de Tera as title of head of government ?
(c(Q1048835),P1313,Q26696554) (c(Q1048835),P1313,Q26695575)
action count
action union
action filter_type
action find_reverse
entity Q26696554
relation P1313
type Q1048835
action filter_type
action find_reverse
entity Q26695575
relation P1313
type Q1048835
[{'concept': 'Q1048835'}, 'P1313', 'Q26696554'] [{'concept': 'Q1048835'}, 'P1313', 'Q26695575']
SELECT DISTINCT ( COUNT ( ?f ) AS ?c ) WHERE { VALUES ( ?u ) { ( resource:Q26696554 ) ( resource:Q26695575 ) } . ?f property:P1313 ?u }
mayor of Atea mayor of Vega de Tera
action count
action union
action filter_type
action find_reverse
entity mayor of Atea
relation office held by head of government
type political territorial entity
action filter_type
action find_reverse
entity mayor of Vega de Tera
relation office held by head of government
type political territorial entity
[{'concept': 'political territorial entity'}, 'office held by head of government', 'mayor of Atea'] [{'concept': 'political territorial entity'}, 'office held by head of government', 'mayor of Vega de Tera']
SELECT DISTINCT ( COUNT ( ?f ) AS ?c ) WHERE { VALUES ( ?u ) { ( resource:mayor_of_Atea ) ( resource:mayor_of_Vega_de_Tera ) } . ?f property:office_held_by_head_of_government ?u }
[]
political territorial entity
SYSTEM
2
Q1766897 Q1771909
(c(Q1048835),P1313,Q26696554) (c(Q1048835),P1313,Q26695575)
action count
action union
action filter_type
action find_reverse
entity Q26696554
relation P1313
type Q1048835
action filter_type
action find_reverse
entity Q26695575
relation P1313
type Q1048835
[ANSWER]
[{'concept': 'Q1048835'}, 'P1313', 'Q26696554'] [{'concept': 'Q1048835'}, 'P1313', 'Q26695575']
SELECT DISTINCT ( COUNT ( ?f ) AS ?c ) WHERE { VALUES ( ?u ) { ( resource:Q26696554 ) ( resource:Q26695575 ) } . ?f property:P1313 ?u }
Vega de Tera Atea
2
action count
action union
action filter_type
action find_reverse
entity mayor of Atea
relation office held by head of government
type political territorial entity
action filter_type
action find_reverse
entity mayor of Vega de Tera
relation office held by head of government
type political territorial entity
[{'concept': 'political territorial entity'}, 'office held by head of government', 'mayor of Atea'] [{'concept': 'political territorial entity'}, 'office held by head of government', 'mayor of Vega de Tera']
SELECT DISTINCT ( COUNT ( ?f ) AS ?c ) WHERE { VALUES ( ?u ) { ( resource:mayor_of_Atea ) ( resource:mayor_of_Vega_de_Tera ) } . ?f property:office_held_by_head_of_government ?u }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P180
Q12737077 Q3516658 Q838948
USER
How many occupations are depicted in atleast 4 heraldic symbols or works of art ?
(c(Q3516658)|c(Q838948),P180,c(Q12737077))
action count
action atleast
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q3516658
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q838948
value 4
[[{'concept': 'Q3516658'}, {'concept': 'Q838948'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?o ) WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?y ) ?s WHERE { { ?j property:P180 ?s . ?s rdf:type ontology:Q12737077 . ?j rdf:type ontology:Q838948 } UNION { ?s rdf:type ontology:Q12737077 . ?j rdf:type ontology:Q3516658 . ?j property:P180 ?s } } GROUP BY ?s } . FILTER ( ?y >= 4 ) }
action count
action atleast
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type heraldic symbol
action find_reverse_tuple_counts
relation depicts
type occupation
type work of art
value 4
[[{'concept': 'heraldic symbol'}, {'concept': 'work of art'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?o ) WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?y ) ?s WHERE { { ?j property:depicts ?s . ?s rdf:type ontology:occupation . ?j rdf:type ontology:work_of_art } UNION { ?s rdf:type ontology:occupation . ?j rdf:type ontology:heraldic_symbol . ?j property:depicts ?s } } GROUP BY ?s } . FILTER ( ?y >= 4 ) }
[]
occupation heraldic symbol work of art
SYSTEM
8
Q1250916 Q47064 Q4991371 Q2730732 Q5716684 Q838811 Q639669 Q49757
(c(Q3516658)|c(Q838948),P180,c(Q12737077))
action count
action atleast
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q3516658
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q838948
value 4
[ANSWER]
[[{'concept': 'Q3516658'}, {'concept': 'Q838948'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?o ) WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?y ) ?s WHERE { { ?j property:P180 ?s . ?s rdf:type ontology:Q12737077 . ?j rdf:type ontology:Q838948 } UNION { ?s rdf:type ontology:Q12737077 . ?j rdf:type ontology:Q3516658 . ?j property:P180 ?s } } GROUP BY ?s } . FILTER ( ?y >= 4 ) }
warrior military personnel soldier equestrian dancer peasant musician poet
8
action count
action atleast
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type heraldic symbol
action find_reverse_tuple_counts
relation depicts
type occupation
type work of art
value 4
[[{'concept': 'heraldic symbol'}, {'concept': 'work of art'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?o ) WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?y ) ?s WHERE { { ?j property:depicts ?s . ?s rdf:type ontology:occupation . ?j rdf:type ontology:work_of_art } UNION { ?s rdf:type ontology:occupation . ?j rdf:type ontology:heraldic_symbol . ?j property:depicts ?s } } GROUP BY ?s } . FILTER ( ?y >= 4 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q84
P931
Q62447
USER
Which aerodrome serves the place named London ?
(c(Q62447),P931,Q84)
action filter_type
action find_reverse
entity Q84
relation P931
type Q62447
[{'concept': 'Q62447'}, 'P931', 'Q84']
SELECT DISTINCT ?a WHERE { ?a property:P931 resource:Q84 . ?a rdf:type ontology:Q62447 }
London
action filter_type
action find_reverse
entity London
relation place served by airport
type aerodrome
[{'concept': 'aerodrome'}, 'place served by airport', 'London']
SELECT DISTINCT ?a WHERE { ?a property:place_served_by_airport resource:London . ?a rdf:type ontology:aerodrome }
[]
aerodrome
Q1431914
SYSTEM
Croydon Airport
Q1431914
(c(Q62447),P931,Q84)
action filter_type
action find_reverse
entity Q84
relation P931
type Q62447
London [ANSWER] serves the place named London
[{'concept': 'Q62447'}, 'P931', 'Q84']
SELECT DISTINCT ?a WHERE { ?a property:P931 resource:Q84 . ?a rdf:type ontology:Q62447 }
Croydon Airport
London Croydon Airport serves the place named London
Croydon Airport
action filter_type
action find_reverse
entity London
relation place served by airport
type aerodrome
[{'concept': 'aerodrome'}, 'place served by airport', 'London']
SELECT DISTINCT ?a WHERE { ?a property:place_served_by_airport resource:London . ?a rdf:type ontology:aerodrome }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1431914
P20
Q502895
USER
Which person expired at that aerodrome ?
(c(Q502895),P20,Q1431914)
action filter_type
action find_reverse
entity Q1431914
relation P20
type Q502895
[{'concept': 'Q502895'}, 'P20', 'Q1431914']
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q502895 . ?i property:P20 resource:Q1431914 }
Croydon Airport
action filter_type
action find_reverse
entity Croydon Airport
relation place of death
type common name
[{'concept': 'common name'}, 'place of death', 'Croydon Airport']
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:common_name . ?i property:place_of_death resource:Croydon_Airport }
[]
common name
Q53294
SYSTEM
Arvid Lindman
Q53294
(c(Q502895),P20,Q1431914)
action filter_type
action find_reverse
entity Q1431914
relation P20
type Q502895
[ANSWER] expired at that aerodrome
[{'concept': 'Q502895'}, 'P20', 'Q1431914']
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q502895 . ?i property:P20 resource:Q1431914 }
Arvid Lindman
Arvid Lindman expired at that aerodrome
Arvid Lindman
action filter_type
action find_reverse
entity Croydon Airport
relation place of death
type common name
[{'concept': 'common name'}, 'place of death', 'Croydon Airport']
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:common_name . ?i property:place_of_death resource:Croydon_Airport }
[]