Simple Question (Direct)
Simple Question
Q5414235
P102
Q7278
USER
Which political party is Eusebio Rodríguez Salas a member of ?
(Q5414235,P102,c(Q7278))
action filter_type
action find
entity Q5414235
relation P102
type Q7278
['Q5414235', 'P102', {'concept': 'Q7278'}]
SELECT DISTINCT ?q WHERE { resource:Q5414235 property:P102 ?q . ?q rdf:type ontology:Q7278 }
Eusebio Rodríguez Salas
action filter_type
action find
entity Eusebio Rodríguez Salas
relation member of political party
type political party
['Eusebio Rodríguez Salas', 'member of political party', {'concept': 'political party'}]
SELECT DISTINCT ?q WHERE { resource:Eusebio_Rodríguez_Salas property:member_of_political_party ?q . ?q rdf:type ontology:political_party }
[]
political party
Q2630934
SYSTEM
Unified Socialist Party of Catalonia
Q2630934
(Q5414235,P102,c(Q7278))
action filter_type
action find
entity Q5414235
relation P102
type Q7278
[ANSWER] is Eusebio Rodríguez Salas a member of
['Q5414235', 'P102', {'concept': 'Q7278'}]
SELECT DISTINCT ?q WHERE { resource:Q5414235 property:P102 ?q . ?q rdf:type ontology:Q7278 }
Unified Socialist Party of Catalonia
Unified Socialist Party of Catalonia is Eusebio Rodríguez Salas a member of
Unified Socialist Party of Catalonia
action filter_type
action find
entity Eusebio Rodríguez Salas
relation member of political party
type political party
['Eusebio Rodríguez Salas', 'member of political party', {'concept': 'political party'}]
SELECT DISTINCT ?q WHERE { resource:Eusebio_Rodríguez_Salas property:member_of_political_party ?q . ?q rdf:type ontology:political_party }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2630934
P17
Q15617994
USER
Which administrative territory is that political party located in ?
(Q2630934,P17,c(Q15617994))
action filter_type
action find
entity Q2630934
relation P17
type Q15617994
['Q2630934', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?l WHERE { resource:Q2630934 property:P17 ?l . ?l rdf:type ontology:Q15617994 }
Unified Socialist Party of Catalonia
action filter_type
action find
entity Unified Socialist Party of Catalonia
relation country
type designation for an administrative territorial entity
['Unified Socialist Party of Catalonia', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:Unified_Socialist_Party_of_Catalonia property:country ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q29
SYSTEM
Spain
Q29
(Q2630934,P17,c(Q15617994))
action filter_type
action find
entity Q2630934
relation P17
type Q15617994
That political party is located in [ANSWER]
['Q2630934', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?l WHERE { resource:Q2630934 property:P17 ?l . ?l rdf:type ontology:Q15617994 }
Spain
That political party is located in Spain
Spain
action filter_type
action find
entity Unified Socialist Party of Catalonia
relation country
type designation for an administrative territorial entity
['Unified Socialist Party of Catalonia', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:Unified_Socialist_Party_of_Catalonia property:country ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2630934
P123
Q1002697
USER
Which periodical literature produced that political party ?
(c(Q1002697),P123,Q29)
action filter_type
action find_reverse
entity Q2630934
relation P123
type Q1002697
[{'concept': 'Q1002697'}, 'P123', 'Q29']
SELECT DISTINCT ?i WHERE { ?i property:P123 resource:Q2630934 . ?i rdf:type ontology:Q1002697 }
Unified Socialist Party of Catalonia
action filter_type
action find_reverse
entity Unified Socialist Party of Catalonia
relation publisher
type periodical literature
[{'concept': 'periodical literature'}, 'publisher', 'Spain']
SELECT DISTINCT ?i WHERE { ?i property:publisher resource:Unified_Socialist_Party_of_Catalonia . ?i rdf:type ontology:periodical_literature }
[]
periodical literature
Q19803134
SYSTEM
Treball
Q19803134
(c(Q1002697),P123,Q29)
action filter_type
action find_reverse
entity Q2630934
relation P123
type Q1002697
[ANSWER] produced that political party
[{'concept': 'Q1002697'}, 'P123', 'Q29']
SELECT DISTINCT ?i WHERE { ?i property:P123 resource:Q2630934 . ?i rdf:type ontology:Q1002697 }
Treball
Treball produced that political party
Treball
action filter_type
action find_reverse
entity Unified Socialist Party of Catalonia
relation publisher
type periodical literature
[{'concept': 'periodical literature'}, 'publisher', 'Spain']
SELECT DISTINCT ?i WHERE { ?i property:publisher resource:Unified_Socialist_Party_of_Catalonia . ?i rdf:type ontology:periodical_literature }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q19803134 Q17006904 Q7978927
P495
Q15617994
USER
Did that periodical literature originated in Gladewater Independent School District and Webster Groves School District ?
(Q19803134,P495,Q17006904) (Q19803134,P495,Q7978927)
action is_in
entity Q19803134
action intersection
action find_reverse
entity Q17006904
relation P495
action find_reverse
entity Q7978927
relation P495
['Q19803134', 'P495', 'Q17006904'] ['Q19803134', 'P495', 'Q7978927']
ASK WHERE { resource:Q19803134 property:P495 resource:Q7978927 . resource:Q19803134 property:P495 resource:Q17006904 }
Treball Gladewater Independent School District Webster Groves School District
action is_in
entity Treball
action intersection
action find_reverse
entity Gladewater Independent School District
relation country of origin
action find_reverse
entity Webster Groves School District
relation country of origin
['Treball', 'country of origin', 'Gladewater Independent School District'] ['Treball', 'country of origin', 'Webster Groves School District']
ASK WHERE { resource:Treball property:country_of_origin resource:Webster_Groves_School_District . resource:Treball property:country_of_origin resource:Gladewater_Independent_School_District }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q19803134,P495,Q17006904) (Q19803134,P495,Q7978927)
action is_in
entity Q19803134
action intersection
action find_reverse
entity Q17006904
relation P495
action find_reverse
entity Q7978927
relation P495
[ANSWER]
['Q19803134', 'P495', 'Q17006904'] ['Q19803134', 'P495', 'Q7978927']
ASK WHERE { resource:Q19803134 property:P495 resource:Q7978927 . resource:Q19803134 property:P495 resource:Q17006904 }
No
action is_in
entity Treball
action intersection
action find_reverse
entity Gladewater Independent School District
relation country of origin
action find_reverse
entity Webster Groves School District
relation country of origin
['Treball', 'country of origin', 'Gladewater Independent School District'] ['Treball', 'country of origin', 'Webster Groves School District']
ASK WHERE { resource:Treball property:country_of_origin resource:Webster_Groves_School_District . resource:Treball property:country_of_origin resource:Gladewater_Independent_School_District }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q29 Q3313450 Q408
P530
Q1048835
USER
Does Spain have ambassadorial relations with Cuenca District and Australia ?
(Q29,P530,Q3313450) (Q29,P530,Q408)
action is_in
entity Q29
action intersection
action find_reverse
entity Q3313450
relation P530
action find_reverse
entity Q408
relation P530
['Q29', 'P530', 'Q3313450'] ['Q29', 'P530', 'Q408']
ASK WHERE { resource:Q29 property:P530 resource:Q3313450 . resource:Q29 property:P530 resource:Q408 }
Spain Cuenca District Australia
action is_in
entity Spain
action intersection
action find_reverse
entity Cuenca District
relation diplomatic relation
action find_reverse
entity Australia
relation diplomatic relation
['Spain', 'diplomatic relation', 'Cuenca District'] ['Spain', 'diplomatic relation', 'Australia']
ASK WHERE { resource:Spain property:diplomatic_relation resource:Cuenca_District . resource:Spain property:diplomatic_relation resource:Australia }
[]
political territorial entity
SYSTEM
NO and YES respectively
(Q29,P530,Q3313450) (Q29,P530,Q408)
action is_in
entity Q29
action intersection
action find_reverse
entity Q3313450
relation P530
action find_reverse
entity Q408
relation P530
[ANSWER]
['Q29', 'P530', 'Q3313450'] ['Q29', 'P530', 'Q408']
ASK WHERE { resource:Q29 property:P530 resource:Q3313450 . resource:Q29 property:P530 resource:Q408 }
NO and YES respectively
action is_in
entity Spain
action intersection
action find_reverse
entity Cuenca District
relation diplomatic relation
action find_reverse
entity Australia
relation diplomatic relation
['Spain', 'diplomatic relation', 'Cuenca District'] ['Spain', 'diplomatic relation', 'Australia']
ASK WHERE { resource:Spain property:diplomatic_relation resource:Cuenca_District . resource:Spain property:diplomatic_relation resource:Australia }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q29
P159
Q43229
USER
Which organizations have their head office location at that administrative territory ?
action filter_type
action find_reverse
entity Q29
relation P159
type Q43229
SELECT DISTINCT ?f WHERE { ?f property:P159 resource:Q29 . ?f rdf:type ontology:Q43229 }
Spain
action filter_type
action find_reverse
entity Spain
relation headquarters location
type organization
SELECT DISTINCT ?f WHERE { ?f property:headquarters_location resource:Spain . ?f rdf:type ontology:organization }
[]
organization
Q782697 Q1318938 Q2742109
SYSTEM
Compass Group, Grupo Marsans, Sociedad Española de Construcción Naval
Q2742109 Q3818226 Q1318938 Q782697 Q3821299 Q17144027 Q5798323 Q5447282 Q6379615 Q1795124 Q1626995 Q3028255
action filter_type
action find_reverse
entity Q29
relation P159
type Q43229
[ANSWERS] have their head office location at that administrative territory
SELECT DISTINCT ?f WHERE { ?f property:P159 resource:Q29 . ?f rdf:type ontology:Q43229 }
Sociedad Española de Construcción Naval ASEES Grupo Marsans Compass Group Safelayer Secure Communications Llorente & Cuenca SENER Fierro Group Kawamura-ganjavian Kyocera Document Solutions Universia Dinamic Software
Compass Group, Grupo Marsans and Sociedad Española de Construcción Naval have their head office location at that administrative territory
Compass Group Grupo Marsans Sociedad Española de Construcción Naval
action filter_type
action find_reverse
entity Spain
relation headquarters location
type organization
SELECT DISTINCT ?f WHERE { ?f property:headquarters_location resource:Spain . ?f rdf:type ontology:organization }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q5723902 Q3313450
P19 P17
Q15617994
USER
Which administrative territories are Cuenca District present in or were Henry Jayasena born at ?
OR((Q3313450,P17,c(Q15617994)), (Q5723902,P19,c(Q15617994)))
action filter_type
action union
action find
entity Q3313450
relation P17
action find
entity Q5723902
relation P19
type Q15617994
{'OR': [['Q3313450', 'P17', {'concept': 'Q15617994'}], ['Q5723902', 'P19', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q15617994 . { { resource:Q3313450 property:P17 ?m } UNION { resource:Q5723902 property:P19 ?m } } }
Henry Jayasena Cuenca District
action filter_type
action union
action find
entity Cuenca District
relation country
action find
entity Henry Jayasena
relation place of birth
type designation for an administrative territorial entity
{'OR': [['Cuenca District', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Henry Jayasena', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Cuenca_District property:country ?m } UNION { resource:Henry_Jayasena property:place_of_birth ?m } } }
[]
designation for an administrative territorial entity
Q419 Q854
SYSTEM
Peru, Sri Lanka
Q419 Q854
OR((Q3313450,P17,c(Q15617994)), (Q5723902,P19,c(Q15617994)))
action filter_type
action union
action find
entity Q3313450
relation P17
action find
entity Q5723902
relation P19
type Q15617994
Cuenca District are born in [ANSWERS]
{'OR': [['Q3313450', 'P17', {'concept': 'Q15617994'}], ['Q5723902', 'P19', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q15617994 . { { resource:Q3313450 property:P17 ?m } UNION { resource:Q5723902 property:P19 ?m } } }
Peru Sri Lanka
Cuenca District are born in Peru and Sri Lanka
Peru Sri Lanka
action filter_type
action union
action find
entity Cuenca District
relation country
action find
entity Henry Jayasena
relation place of birth
type designation for an administrative territorial entity
{'OR': [['Cuenca District', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Henry Jayasena', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Cuenca_District property:country ?m } UNION { resource:Henry_Jayasena property:place_of_birth ?m } } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q1048835
USER
How many political territories have diplomatic relations with around 15 administrative territories ?
(c(Q1048835),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 15
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?k ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?t ) AS ?h ) WHERE { ?g property:P530 ?t . ?g rdf:type ontology:Q1048835 . ?t rdf:type ontology:Q15617994 } GROUP BY ?g } . FILTER ( ?h = 15 ) }
action count
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 15
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?k ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?t ) AS ?h ) WHERE { ?g property:diplomatic_relation ?t . ?g rdf:type ontology:political_territorial_entity . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?g } . FILTER ( ?h = 15 ) }
[]
designation for an administrative territorial entity political territorial entity
SYSTEM
11
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q16 Q664 Q766
(c(Q1048835),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 15
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?k ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?t ) AS ?h ) WHERE { ?g property:P530 ?t . ?g rdf:type ontology:Q1048835 . ?t rdf:type ontology:Q15617994 } GROUP BY ?g } . FILTER ( ?h = 15 ) }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
11
action count
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 15
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?k ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?t ) AS ?h ) WHERE { ?g property:diplomatic_relation ?t . ?g rdf:type ontology:political_territorial_entity . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?g } . FILTER ( ?h = 15 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q419
P551
Q502895
USER
Which person lives in Peru ?
(c(Q502895),P551,Q419)
action filter_type
action find_reverse
entity Q419
relation P551
type Q502895
[{'concept': 'Q502895'}, 'P551', 'Q419']
SELECT DISTINCT ?l WHERE { ?l property:P551 resource:Q419 . ?l rdf:type ontology:Q502895 }
Peru
action filter_type
action find_reverse
entity Peru
relation residence
type common name
[{'concept': 'common name'}, 'residence', 'Peru']
SELECT DISTINCT ?l WHERE { ?l property:residence resource:Peru . ?l rdf:type ontology:common_name }
[]
common name
Q16651616
SYSTEM
Álvaro González
Q16651616
(c(Q502895),P551,Q419)
action filter_type
action find_reverse
entity Q419
relation P551
type Q502895
[ANSWER] lives in Peru
[{'concept': 'Q502895'}, 'P551', 'Q419']
SELECT DISTINCT ?l WHERE { ?l property:P551 resource:Q419 . ?l rdf:type ontology:Q502895 }
Álvaro González
Álvaro González lives in Peru
Álvaro González
action filter_type
action find_reverse
entity Peru
relation residence
type common name
[{'concept': 'common name'}, 'residence', 'Peru']
SELECT DISTINCT ?l WHERE { ?l property:residence resource:Peru . ?l rdf:type ontology:common_name }
[]