Simple Question (Direct)
Simple Question
Q1237458
P39
Q12737077
USER
Which occupation was a position occupied by Souad Sbai ?
(Q1237458,P39,c(Q12737077))
action filter_type
action find
entity Q1237458
relation P39
type Q12737077
['Q1237458', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q12737077 . resource:Q1237458 property:P39 ?s }
Souad Sbai
action filter_type
action find
entity Souad Sbai
relation position held
type occupation
['Souad Sbai', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:occupation . resource:Souad_Sbai property:position_held ?s }
[]
occupation
Q18558478
SYSTEM
member of the Chamber of Deputies of the Italian Republic
Q18558478
(Q1237458,P39,c(Q12737077))
action filter_type
action find
entity Q1237458
relation P39
type Q12737077
[ANSWER] was a position occupied by Souad Sbai
['Q1237458', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q12737077 . resource:Q1237458 property:P39 ?s }
member of the Chamber of Deputies of the Italian Republic
Member of the Chamber of Deputies of the Italian Republic was a position occupied by Souad Sbai
member of the Chamber of Deputies of the Italian Republic
action filter_type
action find
entity Souad Sbai
relation position held
type occupation
['Souad Sbai', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:occupation . resource:Souad_Sbai property:position_held ?s }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1237458
P937
Q56061
USER
Where did Souad Sbai work ?
(Q1237458,P937,c(Q56061))
action filter_type
action find
entity Q1237458
relation P937
type Q56061
['Q1237458', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?a WHERE { resource:Q1237458 property:P937 ?a . ?a rdf:type ontology:Q56061 }
Souad Sbai
action filter_type
action find
entity Souad Sbai
relation work location
type administrative territorial entity
['Souad Sbai', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Souad_Sbai property:work_location ?a . ?a rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q220
SYSTEM
Rome
Q220
(Q1237458,P937,c(Q56061))
action filter_type
action find
entity Q1237458
relation P937
type Q56061
Souad Sbai worked in [ANSWER]
['Q1237458', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?a WHERE { resource:Q1237458 property:P937 ?a . ?a rdf:type ontology:Q56061 }
Rome
Souad Sbai worked in Rome
Rome
action filter_type
action find
entity Souad Sbai
relation work location
type administrative territorial entity
['Souad Sbai', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Souad_Sbai property:work_location ?a . ?a rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q1381853
Q56061
USER
And how about Franz Xaver Neruda?
(Q1381853,P937,c(Q56061))
action filter_type
action find
entity Q1381853
relation P937
type Q56061
['Q1381853', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?e WHERE { resource:Q1381853 property:P937 ?e . ?e rdf:type ontology:Q56061 }
Franz Xaver Neruda
action filter_type
action find
entity Franz Xaver Neruda
relation work location
type administrative territorial entity
['Franz Xaver Neruda', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:Franz_Xaver_Neruda property:work_location ?e . ?e rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1748
SYSTEM
Copenhagen
Q1748
(Q1381853,P937,c(Q56061))
action filter_type
action find
entity Q1381853
relation P937
type Q56061
[ANSWER]
['Q1381853', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?e WHERE { resource:Q1381853 property:P937 ?e . ?e rdf:type ontology:Q56061 }
Copenhagen
Copenhagen
action filter_type
action find
entity Franz Xaver Neruda
relation work location
type administrative territorial entity
['Franz Xaver Neruda', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:Franz_Xaver_Neruda property:work_location ?e . ?e rdf:type ontology:administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q1748 Q2844936 Q64
P190
Q56061
USER
Is Copenhagen partner town of Balmaceda, Chile and Berlin ?
(Q1748,P190,Q2844936) (Q1748,P190,Q64)
action is_in
entity Q1748
action intersection
action find_reverse
entity Q2844936
relation P190
action find_reverse
entity Q64
relation P190
['Q1748', 'P190', 'Q2844936'] ['Q1748', 'P190', 'Q64']
ASK WHERE { resource:Q1748 property:P190 resource:Q64 . resource:Q1748 property:P190 resource:Q2844936 }
Copenhagen Balmaceda, Chile Berlin
action is_in
entity Copenhagen
action intersection
action find_reverse
entity Balmaceda, Chile
relation sister city
action find_reverse
entity Berlin
relation sister city
['Copenhagen', 'sister city', 'Balmaceda, Chile'] ['Copenhagen', 'sister city', 'Berlin']
ASK WHERE { resource:Copenhagen property:sister_city resource:Berlin . resource:Copenhagen property:sister_city resource:Balmaceda,_Chile }
[]
administrative territorial entity
SYSTEM
NO and YES respectively
(Q1748,P190,Q2844936) (Q1748,P190,Q64)
action is_in
entity Q1748
action intersection
action find_reverse
entity Q2844936
relation P190
action find_reverse
entity Q64
relation P190
[ANSWER]
['Q1748', 'P190', 'Q2844936'] ['Q1748', 'P190', 'Q64']
ASK WHERE { resource:Q1748 property:P190 resource:Q64 . resource:Q1748 property:P190 resource:Q2844936 }
NO and YES respectively
action is_in
entity Copenhagen
action intersection
action find_reverse
entity Balmaceda, Chile
relation sister city
action find_reverse
entity Berlin
relation sister city
['Copenhagen', 'sister city', 'Balmaceda, Chile'] ['Copenhagen', 'sister city', 'Berlin']
ASK WHERE { resource:Copenhagen property:sister_city resource:Berlin . resource:Copenhagen property:sister_city resource:Balmaceda,_Chile }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q18558478 Q38
P17
Q15617994
USER
Does member of the Chamber of Deputies of the Italian Republic belong to Italy ?
(Q18558478,P17,Q38)
action is_in
entity Q38
action find
entity Q18558478
relation P17
['Q18558478', 'P17', 'Q38']
ASK WHERE { resource:Q18558478 property:P17 resource:Q38 }
member of the Chamber of Deputies of the Italian Republic Italy
action is_in
entity Italy
action find
entity member of the Chamber of Deputies of the Italian Republic
relation country
['member of the Chamber of Deputies of the Italian Republic', 'country', 'Italy']
ASK WHERE { resource:member_of_the_Chamber_of_Deputies_of_the_Italian_Republic property:country resource:Italy }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q18558478,P17,Q38)
action is_in
entity Q38
action find
entity Q18558478
relation P17
[ANSWER]
['Q18558478', 'P17', 'Q38']
ASK WHERE { resource:Q18558478 property:P17 resource:Q38 }
Yes
action is_in
entity Italy
action find
entity member of the Chamber of Deputies of the Italian Republic
relation country
['member of the Chamber of Deputies of the Italian Republic', 'country', 'Italy']
ASK WHERE { resource:member_of_the_Chamber_of_Deputies_of_the_Italian_Republic property:country resource:Italy }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1748
P276
Q625994
USER
What are situated at Copenhagen ?
(c(Q625994),P276,Q1748)
action filter_type
action find_reverse
entity Q1748
relation P276
type Q625994
[{'concept': 'Q625994'}, 'P276', 'Q1748']
SELECT DISTINCT ?y WHERE { ?y property:P276 resource:Q1748 . ?y rdf:type ontology:Q625994 }
Copenhagen
action filter_type
action find_reverse
entity Copenhagen
relation location
type convention
[{'concept': 'convention'}, 'location', 'Copenhagen']
SELECT DISTINCT ?y WHERE { ?y property:location resource:Copenhagen . ?y rdf:type ontology:convention }
[]
convention
Q17144373 Q24406373 Q24406301
SYSTEM
2014 Bilderberg Conference, ELAG 1979 conference (1st), ELAG 2016 conference
Q17144373 Q24406373 Q24406301
(c(Q625994),P276,Q1748)
action filter_type
action find_reverse
entity Q1748
relation P276
type Q625994
[ANSWERS] are situated at Copenhagen
[{'concept': 'Q625994'}, 'P276', 'Q1748']
SELECT DISTINCT ?y WHERE { ?y property:P276 resource:Q1748 . ?y rdf:type ontology:Q625994 }
2014 Bilderberg Conference ELAG 1979 conference (1st) ELAG 2016 conference
2014 Bilderberg Conference, ELAG 1979 conference (1st) and ELAG 2016 conference are situated at Copenhagen
2014 Bilderberg Conference ELAG 1979 conference (1st) ELAG 2016 conference
action filter_type
action find_reverse
entity Copenhagen
relation location
type convention
[{'concept': 'convention'}, 'location', 'Copenhagen']
SELECT DISTINCT ?y WHERE { ?y property:location resource:Copenhagen . ?y rdf:type ontology:convention }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q17144373 Q24406373 Q24406301
P276
Q56061
USER
Where are those conventions situated ?
(Q17144373,P276,c(Q56061)) (Q24406373,P276,c(Q56061)) (Q24406301,P276,c(Q56061))
action filter_type
action find
entity prev_answer
relation P276
type Q56061
['Q17144373', 'P276', {'concept': 'Q56061'}] ['Q24406373', 'P276', {'concept': 'Q56061'}] ['Q24406301', 'P276', {'concept': 'Q56061'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q56061 . ?o property:P276 ?a . VALUES ( ?o ) { ( resource:Q17144373 ) ( resource:Q24406373 ) ( resource:Q24406301 ) } }
2014 Bilderberg Conference ELAG 1979 conference (1st) ELAG 2016 conference
action filter_type
action find
entity prev_answer
relation location
type administrative territorial entity
['2014 Bilderberg Conference', 'location', {'concept': 'administrative territorial entity'}] ['ELAG 1979 conference (1st)', 'location', {'concept': 'administrative territorial entity'}] ['ELAG 2016 conference', 'location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:administrative_territorial_entity . ?o property:location ?a . VALUES ( ?o ) { ( resource:2014_Bilderberg_Conference ) ( resource:ELAG_1979_conference_(1st) ) ( resource:ELAG_2016_conference ) } }
[]
administrative territorial entity
Q1748 Q1748 Q1748
SYSTEM
Copenhagen
Q1748 Q1748 Q1748
(Q17144373,P276,c(Q56061)) (Q24406373,P276,c(Q56061)) (Q24406301,P276,c(Q56061))
action filter_type
action find
entity prev_answer
relation P276
type Q56061
Those conventions are situated in [ANSWER], [ANSWER] and [ANSWER]
['Q17144373', 'P276', {'concept': 'Q56061'}] ['Q24406373', 'P276', {'concept': 'Q56061'}] ['Q24406301', 'P276', {'concept': 'Q56061'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q56061 . ?o property:P276 ?a . VALUES ( ?o ) { ( resource:Q17144373 ) ( resource:Q24406373 ) ( resource:Q24406301 ) } }
Copenhagen Copenhagen Copenhagen
Those conventions are situated in Copenhagen, Copenhagen and Copenhagen
Copenhagen Copenhagen Copenhagen
action filter_type
action find
entity prev_answer
relation location
type administrative territorial entity
['2014 Bilderberg Conference', 'location', {'concept': 'administrative territorial entity'}] ['ELAG 1979 conference (1st)', 'location', {'concept': 'administrative territorial entity'}] ['ELAG 2016 conference', 'location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:administrative_territorial_entity . ?o property:location ?a . VALUES ( ?o ) { ( resource:2014_Bilderberg_Conference ) ( resource:ELAG_1979_conference_(1st) ) ( resource:ELAG_2016_conference ) } }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1748
P1376
Q3976655
USER
What has that administrative territory as its capital ?
(Q1748,P1376,c(Q3976655)) (Q1748,P1376,c(Q3976655)) (Q1748,P1376,c(Q3976655))
action filter_type
action find
entity Q1748
relation P1376
type Q3976655
['Q1748', 'P1376', {'concept': 'Q3976655'}] ['Q1748', 'P1376', {'concept': 'Q3976655'}] ['Q1748', 'P1376', {'concept': 'Q3976655'}]
SELECT DISTINCT ?z WHERE { resource:Q1748 property:P1376 ?z . ?z rdf:type ontology:Q3976655 }
Copenhagen
action filter_type
action find
entity Copenhagen
relation capital of
type administrative territorial entity of Denmark
['Copenhagen', 'capital of', {'concept': 'administrative territorial entity of Denmark'}] ['Copenhagen', 'capital of', {'concept': 'administrative territorial entity of Denmark'}] ['Copenhagen', 'capital of', {'concept': 'administrative territorial entity of Denmark'}]
SELECT DISTINCT ?z WHERE { resource:Copenhagen property:capital_of ?z . ?z rdf:type ontology:administrative_territorial_entity_of_Denmark }
[]
administrative territorial entity of Denmark
Q504125
SYSTEM
Copenhagen Municipality
Q504125
(Q1748,P1376,c(Q3976655)) (Q1748,P1376,c(Q3976655)) (Q1748,P1376,c(Q3976655))
action filter_type
action find
entity Q1748
relation P1376
type Q3976655
[ANSWER] has that administrative territory as its capital
['Q1748', 'P1376', {'concept': 'Q3976655'}] ['Q1748', 'P1376', {'concept': 'Q3976655'}] ['Q1748', 'P1376', {'concept': 'Q3976655'}]
SELECT DISTINCT ?z WHERE { resource:Q1748 property:P1376 ?z . ?z rdf:type ontology:Q3976655 }
Copenhagen Municipality
Copenhagen Municipality has that administrative territory as its capital
Copenhagen Municipality
action filter_type
action find
entity Copenhagen
relation capital of
type administrative territorial entity of Denmark
['Copenhagen', 'capital of', {'concept': 'administrative territorial entity of Denmark'}] ['Copenhagen', 'capital of', {'concept': 'administrative territorial entity of Denmark'}] ['Copenhagen', 'capital of', {'concept': 'administrative territorial entity of Denmark'}]
SELECT DISTINCT ?z WHERE { resource:Copenhagen property:capital_of ?z . ?z rdf:type ontology:administrative_territorial_entity_of_Denmark }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q1748
P1376
Q7275 Q1048835
USER
How many states or political territories have Copenhagen as their county seat ?
(Q1748,P1376,c(Q7275)) (Q1748,P1376,c(Q1048835))
action count
action union
action filter_type
action find
entity Q1748
relation P1376
type Q7275
action filter_type
action find
entity Q1748
relation P1376
type Q1048835
['Q1748', 'P1376', {'concept': 'Q7275'}] ['Q1748', 'P1376', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?e ) WHERE { ?q rdf:type ?n . VALUES ( ?n ) { ( ontology:Q7275 ) ( ontology:Q1048835 ) } }
Copenhagen
action count
action union
action filter_type
action find
entity Copenhagen
relation capital of
type state
action filter_type
action find
entity Copenhagen
relation capital of
type political territorial entity
['Copenhagen', 'capital of', {'concept': 'state'}] ['Copenhagen', 'capital of', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?e ) WHERE { ?q rdf:type ?n . VALUES ( ?n ) { ( ontology:state ) ( ontology:political_territorial_entity ) } }
[]
state political territorial entity
SYSTEM
2
Q35 Q62623
(Q1748,P1376,c(Q7275)) (Q1748,P1376,c(Q1048835))
action count
action union
action filter_type
action find
entity Q1748
relation P1376
type Q7275
action filter_type
action find
entity Q1748
relation P1376
type Q1048835
[ANSWER]
['Q1748', 'P1376', {'concept': 'Q7275'}] ['Q1748', 'P1376', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?e ) WHERE { ?q rdf:type ?n . VALUES ( ?n ) { ( ontology:Q7275 ) ( ontology:Q1048835 ) } }
Denmark Kalmar Union
2
action count
action union
action filter_type
action find
entity Copenhagen
relation capital of
type state
action filter_type
action find
entity Copenhagen
relation capital of
type political territorial entity
['Copenhagen', 'capital of', {'concept': 'state'}] ['Copenhagen', 'capital of', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?e ) WHERE { ?q rdf:type ?n . VALUES ( ?n ) { ( ontology:state ) ( ontology:political_territorial_entity ) } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P532
Q56061 Q2235308
USER
Which ship types have max number of administrative territories as their registry harbour ?
(c(Q2235308),P532,c(Q56061))
action argmax
action find_tuple_counts
relation P532
type Q2235308
type Q56061
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( MAX ( ?b ) AS ?m ) { SELECT DISTINCT ?j ( COUNT ( ?k ) AS ?b ) WHERE { ?j property:P532 ?k . ?j rdf:type ontology:Q2235308 . ?k rdf:type ontology:Q56061 } GROUP BY ?j } } . { SELECT DISTINCT ?i ( COUNT ( ?h ) AS ?v ) WHERE { ?i rdf:type ontology:Q2235308 . ?h rdf:type ontology:Q56061 . ?i property:P532 ?h } GROUP BY ?i } . FILTER ( ?v = ?m ) }
action argmax
action find_tuple_counts
relation port of registry
type ship type
type administrative territorial entity
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( MAX ( ?b ) AS ?m ) { SELECT DISTINCT ?j ( COUNT ( ?k ) AS ?b ) WHERE { ?j property:port_of_registry ?k . ?j rdf:type ontology:ship_type . ?k rdf:type ontology:administrative_territorial_entity } GROUP BY ?j } } . { SELECT DISTINCT ?i ( COUNT ( ?h ) AS ?v ) WHERE { ?i rdf:type ontology:ship_type . ?h rdf:type ontology:administrative_territorial_entity . ?i property:port_of_registry ?h } GROUP BY ?i } . FILTER ( ?v = ?m ) }
[]
administrative territorial entity ship type
Q11707059
SYSTEM
MS Arrow
Q11707059
(c(Q2235308),P532,c(Q56061))
action argmax
action find_tuple_counts
relation P532
type Q2235308
type Q56061
S [ANSWER] have max number of administrative territories as their registry harbour
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( MAX ( ?b ) AS ?m ) { SELECT DISTINCT ?j ( COUNT ( ?k ) AS ?b ) WHERE { ?j property:P532 ?k . ?j rdf:type ontology:Q2235308 . ?k rdf:type ontology:Q56061 } GROUP BY ?j } } . { SELECT DISTINCT ?i ( COUNT ( ?h ) AS ?v ) WHERE { ?i rdf:type ontology:Q2235308 . ?h rdf:type ontology:Q56061 . ?i property:P532 ?h } GROUP BY ?i } . FILTER ( ?v = ?m ) }
MS Arrow
S MS Arrow have max number of administrative territories as their registry harbour
MS Arrow
action argmax
action find_tuple_counts
relation port of registry
type ship type
type administrative territorial entity
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( MAX ( ?b ) AS ?m ) { SELECT DISTINCT ?j ( COUNT ( ?k ) AS ?b ) WHERE { ?j property:port_of_registry ?k . ?j rdf:type ontology:ship_type . ?k rdf:type ontology:administrative_territorial_entity } GROUP BY ?j } } . { SELECT DISTINCT ?i ( COUNT ( ?h ) AS ?v ) WHERE { ?i rdf:type ontology:ship_type . ?h rdf:type ontology:administrative_territorial_entity . ?i property:port_of_registry ?h } GROUP BY ?i } . FILTER ( ?v = ?m ) }
[]