Simple Question (Direct)
Simple Question
Q16946130
P463
Q48204
USER
Which voluntary association had Ricard Torrents i Bertrana as its member ?
(Q16946130,P463,c(Q48204))
action filter_type
action find
entity Q16946130
relation P463
type Q48204
['Q16946130', 'P463', {'concept': 'Q48204'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q48204 . resource:Q16946130 property:P463 ?z }
Ricard Torrents i Bertrana
action filter_type
action find
entity Ricard Torrents i Bertrana
relation member of
type voluntary association
['Ricard Torrents i Bertrana', 'member of', {'concept': 'voluntary association'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:voluntary_association . resource:Ricard_Torrents_i_Bertrana property:member_of ?z }
[]
voluntary association
Q756890
SYSTEM
Institut d'Estudis Catalans
Q756890
(Q16946130,P463,c(Q48204))
action filter_type
action find
entity Q16946130
relation P463
type Q48204
[ANSWER] had Ricard Torrents i Bertrana as its member
['Q16946130', 'P463', {'concept': 'Q48204'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q48204 . resource:Q16946130 property:P463 ?z }
Institut d'Estudis Catalans
Institut d'Estudis Catalans had Ricard Torrents i Bertrana as its member
Institut d'Estudis Catalans
action filter_type
action find
entity Ricard Torrents i Bertrana
relation member of
type voluntary association
['Ricard Torrents i Bertrana', 'member of', {'concept': 'voluntary association'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:voluntary_association . resource:Ricard_Torrents_i_Bertrana property:member_of ?z }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q756890
P17
Q15617994
USER
Which administrative territory is that voluntary association located in ?
(Q756890,P17,c(Q15617994))
action filter_type
action find
entity Q756890
relation P17
type Q15617994
['Q756890', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?m WHERE { resource:Q756890 property:P17 ?m . ?m rdf:type ontology:Q15617994 }
Institut d'Estudis Catalans
action filter_type
action find
entity Institut d'Estudis Catalans
relation country
type designation for an administrative territorial entity
["Institut d'Estudis Catalans", 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:Institut_d'Estudis_Catalans property:country ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q29
SYSTEM
Spain
Q29
(Q756890,P17,c(Q15617994))
action filter_type
action find
entity Q756890
relation P17
type Q15617994
That voluntary association is located in [ANSWER]
['Q756890', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?m WHERE { resource:Q756890 property:P17 ?m . ?m rdf:type ontology:Q15617994 }
Spain
That voluntary association is located in Spain
Spain
action filter_type
action find
entity Institut d'Estudis Catalans
relation country
type designation for an administrative territorial entity
["Institut d'Estudis Catalans", 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:Institut_d'Estudis_Catalans property:country ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P47
Q56061 Q515
USER
How many administrative territories or cities do that administrative territory share a border with ?
(c(Q56061),P47,Q29) (c(Q515),P47,Q29) (c(Q56061),P47,Q29) (c(Q515),P47,Q29)
action count
action union
action filter_type
action find_reverse
entity Q29
relation P47
type Q56061
action filter_type
action find_reverse
entity Q29
relation P47
type Q515
[{'concept': 'Q56061'}, 'P47', 'Q29'] [{'concept': 'Q515'}, 'P47', 'Q29'] [{'concept': 'Q56061'}, 'P47', 'Q29'] [{'concept': 'Q515'}, 'P47', 'Q29']
SELECT DISTINCT ( COUNT ( ?t ) AS ?c ) WHERE { { ?t property:P47 resource:Q29 . ?t rdf:type ontology:Q56061 } UNION { ?t property:P47 resource:Q29 . ?t rdf:type ontology:Q515 } }
action count
action union
action filter_type
action find_reverse
entity Spain
relation shares border with
type administrative territorial entity
action filter_type
action find_reverse
entity Spain
relation shares border with
type city
[{'concept': 'administrative territorial entity'}, 'shares border with', 'Spain'] [{'concept': 'city'}, 'shares border with', 'Spain'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'Spain'] [{'concept': 'city'}, 'shares border with', 'Spain']
SELECT DISTINCT ( COUNT ( ?t ) AS ?c ) WHERE { { ?t property:shares_border_with resource:Spain . ?t rdf:type ontology:administrative_territorial_entity } UNION { ?t property:shares_border_with resource:Spain . ?t rdf:type ontology:city } }
[]
administrative territorial entity city
SYSTEM
3
Q1410 Q458 Q7172
(c(Q56061),P47,Q29) (c(Q515),P47,Q29) (c(Q56061),P47,Q29) (c(Q515),P47,Q29)
action count
action union
action filter_type
action find_reverse
entity Q29
relation P47
type Q56061
action filter_type
action find_reverse
entity Q29
relation P47
type Q515
[ANSWER]
[{'concept': 'Q56061'}, 'P47', 'Q29'] [{'concept': 'Q515'}, 'P47', 'Q29'] [{'concept': 'Q56061'}, 'P47', 'Q29'] [{'concept': 'Q515'}, 'P47', 'Q29']
SELECT DISTINCT ( COUNT ( ?t ) AS ?c ) WHERE { { ?t property:P47 resource:Q29 . ?t rdf:type ontology:Q56061 } UNION { ?t property:P47 resource:Q29 . ?t rdf:type ontology:Q515 } }
Gibraltar European Union Arab League
3
action count
action union
action filter_type
action find_reverse
entity Spain
relation shares border with
type administrative territorial entity
action filter_type
action find_reverse
entity Spain
relation shares border with
type city
[{'concept': 'administrative territorial entity'}, 'shares border with', 'Spain'] [{'concept': 'city'}, 'shares border with', 'Spain'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'Spain'] [{'concept': 'city'}, 'shares border with', 'Spain']
SELECT DISTINCT ( COUNT ( ?t ) AS ?c ) WHERE { { ?t property:shares_border_with resource:Spain . ?t rdf:type ontology:administrative_territorial_entity } UNION { ?t property:shares_border_with resource:Spain . ?t rdf:type ontology:city } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q21157874 Q29
P47 P27
Q15617994
USER
Which administrative territories share the border with Spain or are the native countriesof Franc Cijan ?
OR((Q29,P47,c(Q15617994)), (Q21157874,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q29
relation P47
action find
entity Q21157874
relation P27
type Q15617994
{'OR': [['Q29', 'P47', {'concept': 'Q15617994'}], ['Q21157874', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?d WHERE { { { resource:Q29 property:P47 ?d } UNION { resource:Q21157874 property:P27 ?d } } . ?d rdf:type ontology:Q15617994 }
Franc Cijan Spain
action filter_type
action union
action find
entity Spain
relation shares border with
action find
entity Franc Cijan
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Spain', 'shares border with', {'concept': 'designation for an administrative territorial entity'}], ['Franc Cijan', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?d WHERE { { { resource:Spain property:shares_border_with ?d } UNION { resource:Franc_Cijan property:country_of_citizenship ?d } } . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142 Q1025 Q45 Q215 Q1028 Q228
SYSTEM
France, Mauritania, Portugal, Slovenia, Morocco, Andorra
Q142 Q1025 Q45 Q215 Q1028 Q228
OR((Q29,P47,c(Q15617994)), (Q21157874,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q29
relation P47
action find
entity Q21157874
relation P27
type Q15617994
[ANSWERS] share the border with Spain or are the native countriesof Franc Cijan
{'OR': [['Q29', 'P47', {'concept': 'Q15617994'}], ['Q21157874', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?d WHERE { { { resource:Q29 property:P47 ?d } UNION { resource:Q21157874 property:P27 ?d } } . ?d rdf:type ontology:Q15617994 }
France Mauritania Portugal Slovenia Morocco Andorra
France, Mauritania, Portugal, Slovenia, Morocco and Andorra share the border with Spain or are the native countriesof Franc Cijan
France Mauritania Portugal Slovenia Morocco Andorra
action filter_type
action union
action find
entity Spain
relation shares border with
action find
entity Franc Cijan
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Spain', 'shares border with', {'concept': 'designation for an administrative territorial entity'}], ['Franc Cijan', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?d WHERE { { { resource:Spain property:shares_border_with ?d } UNION { resource:Franc_Cijan property:country_of_citizenship ?d } } . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q142 Q1025 Q45 Q215 Q1028 Q228
P30
Q2221906
USER
Where are those administrative territories situated ?
(Q142,P30,c(Q2221906)) (Q1025,P30,c(Q2221906)) (Q45,P30,c(Q2221906)) (Q215,P30,c(Q2221906)) (Q1028,P30,c(Q2221906)) (Q228,P30,c(Q2221906))
action filter_type
action find
entity prev_answer
relation P30
type Q2221906
['Q142', 'P30', {'concept': 'Q2221906'}] ['Q1025', 'P30', {'concept': 'Q2221906'}] ['Q45', 'P30', {'concept': 'Q2221906'}] ['Q215', 'P30', {'concept': 'Q2221906'}] ['Q1028', 'P30', {'concept': 'Q2221906'}] ['Q228', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q2221906 . VALUES ( ?v ) { ( resource:Q142 ) ( resource:Q1025 ) ( resource:Q45 ) } . ?v property:P30 ?t }
France Mauritania Portugal Slovenia Morocco Andorra
action filter_type
action find
entity prev_answer
relation continent
type geographic location
['France', 'continent', {'concept': 'geographic location'}] ['Mauritania', 'continent', {'concept': 'geographic location'}] ['Portugal', 'continent', {'concept': 'geographic location'}] ['Slovenia', 'continent', {'concept': 'geographic location'}] ['Morocco', 'continent', {'concept': 'geographic location'}] ['Andorra', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:geographic_location . VALUES ( ?v ) { ( resource:France ) ( resource:Mauritania ) ( resource:Portugal ) } . ?v property:continent ?t }
[]
geographic location
Q51 Q15 Q15
SYSTEM
Antarctica for 1st, Africa for 2nd, 3rd
Q46 Q15 Q51 Q828 Q538 Q15 Q46 Q46 Q15 Q46
(Q142,P30,c(Q2221906)) (Q1025,P30,c(Q2221906)) (Q45,P30,c(Q2221906)) (Q215,P30,c(Q2221906)) (Q1028,P30,c(Q2221906)) (Q228,P30,c(Q2221906))
action filter_type
action find
entity prev_answer
relation P30
type Q2221906
[ANSWERS]
['Q142', 'P30', {'concept': 'Q2221906'}] ['Q1025', 'P30', {'concept': 'Q2221906'}] ['Q45', 'P30', {'concept': 'Q2221906'}] ['Q215', 'P30', {'concept': 'Q2221906'}] ['Q1028', 'P30', {'concept': 'Q2221906'}] ['Q228', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q2221906 . VALUES ( ?v ) { ( resource:Q142 ) ( resource:Q1025 ) ( resource:Q45 ) } . ?v property:P30 ?t }
Europe Africa Antarctica Americas Oceania Africa Europe Europe Africa Europe
Those administrative territories are situated in Antarctica, Africa and Africa
Antarctica Africa Africa
action filter_type
action find
entity prev_answer
relation continent
type geographic location
['France', 'continent', {'concept': 'geographic location'}] ['Mauritania', 'continent', {'concept': 'geographic location'}] ['Portugal', 'continent', {'concept': 'geographic location'}] ['Slovenia', 'continent', {'concept': 'geographic location'}] ['Morocco', 'continent', {'concept': 'geographic location'}] ['Andorra', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:geographic_location . VALUES ( ?v ) { ( resource:France ) ( resource:Mauritania ) ( resource:Portugal ) } . ?v property:continent ?t }
[]