Simple Question (Direct)
Simple Question
Q1446662
P172
Q2472587
USER
Which people does Stefanos Athanasiadis have as ethnic origin ?
(Q1446662,P172,c(Q2472587))
action filter_type
action find
entity Q1446662
relation P172
type Q2472587
['Q1446662', 'P172', {'concept': 'Q2472587'}]
SELECT DISTINCT ?n WHERE { resource:Q1446662 property:P172 ?n . ?n rdf:type ontology:Q2472587 }
Stefanos Athanasiadis
action filter_type
action find
entity Stefanos Athanasiadis
relation ethnic group
type people
['Stefanos Athanasiadis', 'ethnic group', {'concept': 'people'}]
SELECT DISTINCT ?n WHERE { resource:Stefanos_Athanasiadis property:ethnic_group ?n . ?n rdf:type ontology:people }
[]
people
Q539051
SYSTEM
Greeks
Q539051
(Q1446662,P172,c(Q2472587))
action filter_type
action find
entity Q1446662
relation P172
type Q2472587
Stefanos Athanasiadis has as ethnic origin as [ANSWER]
['Q1446662', 'P172', {'concept': 'Q2472587'}]
SELECT DISTINCT ?n WHERE { resource:Q1446662 property:P172 ?n . ?n rdf:type ontology:Q2472587 }
Greeks
Stefanos Athanasiadis has as ethnic origin as Greeks
Greeks
action filter_type
action find
entity Stefanos Athanasiadis
relation ethnic group
type people
['Stefanos Athanasiadis', 'ethnic group', {'concept': 'people'}]
SELECT DISTINCT ?n WHERE { resource:Stefanos_Athanasiadis property:ethnic_group ?n . ?n rdf:type ontology:people }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1446662
P21
Q290
USER
What is the sex of Stefanos Athanasiadis ?
(Q1446662,P21,c(Q290))
action filter_type
action find
entity Q1446662
relation P21
type Q290
['Q1446662', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?e WHERE { resource:Q1446662 property:P21 ?e . ?e rdf:type ontology:Q290 }
Stefanos Athanasiadis
action filter_type
action find
entity Stefanos Athanasiadis
relation gender
type sex
['Stefanos Athanasiadis', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?e WHERE { resource:Stefanos_Athanasiadis property:gender ?e . ?e rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q1446662,P21,c(Q290))
action filter_type
action find
entity Q1446662
relation P21
type Q290
The sex of Stefanos Athanasiadis is the [ANSWER]
['Q1446662', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?e WHERE { resource:Q1446662 property:P21 ?e . ?e rdf:type ontology:Q290 }
male
The sex of Stefanos Athanasiadis is the male
male
action filter_type
action find
entity Stefanos Athanasiadis
relation gender
type sex
['Stefanos Athanasiadis', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?e WHERE { resource:Stefanos_Athanasiadis property:gender ?e . ?e rdf:type ontology:sex }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1338116 Q1446662
P19
Q56061
USER
Which administrative territories are the places of birth of Stefanos Athanasiadis or Karl Meli ?
OR((Q1446662,P19,c(Q56061)), (Q1338116,P19,c(Q56061)))
action filter_type
action union
action find
entity Q1446662
relation P19
action find
entity Q1338116
relation P19
type Q56061
{'OR': [['Q1446662', 'P19', {'concept': 'Q56061'}], ['Q1338116', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Q1446662 property:P19 ?f } UNION { resource:Q1338116 property:P19 ?f } } . ?f rdf:type ontology:Q56061 }
Karl Meli Stefanos Athanasiadis
action filter_type
action union
action find
entity Stefanos Athanasiadis
relation place of birth
action find
entity Karl Meli
relation place of birth
type administrative territorial entity
{'OR': [['Stefanos Athanasiadis', 'place of birth', {'concept': 'administrative territorial entity'}], ['Karl Meli', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Stefanos_Athanasiadis property:place_of_birth ?f } UNION { resource:Karl_Meli property:place_of_birth ?f } } . ?f rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q9125 Q17151
SYSTEM
Winterthur, Thessaloniki
Q9125 Q17151
OR((Q1446662,P19,c(Q56061)), (Q1338116,P19,c(Q56061)))
action filter_type
action union
action find
entity Q1446662
relation P19
action find
entity Q1338116
relation P19
type Q56061
[ANSWERS] are the places of birth of Stefanos Athanasiadis or Karl Meli
{'OR': [['Q1446662', 'P19', {'concept': 'Q56061'}], ['Q1338116', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Q1446662 property:P19 ?f } UNION { resource:Q1338116 property:P19 ?f } } . ?f rdf:type ontology:Q56061 }
Winterthur Thessaloniki
Winterthur and Thessaloniki are the places of birth of Stefanos Athanasiadis or Karl Meli
Winterthur Thessaloniki
action filter_type
action union
action find
entity Stefanos Athanasiadis
relation place of birth
action find
entity Karl Meli
relation place of birth
type administrative territorial entity
{'OR': [['Stefanos Athanasiadis', 'place of birth', {'concept': 'administrative territorial entity'}], ['Karl Meli', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Stefanos_Athanasiadis property:place_of_birth ?f } UNION { resource:Karl_Meli property:place_of_birth ?f } } . ?f rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q5739 Q9125
P47
Q13220204
USER
Which administrative country subdivisions have a shared border with Winterthur or Castile and León ?
OR((Q9125,P47,c(Q13220204)), (Q5739,P47,c(Q13220204)))
action filter_type
action union
action find
entity Q9125
relation P47
action find
entity Q5739
relation P47
type Q13220204
{'OR': [['Q9125', 'P47', {'concept': 'Q13220204'}], ['Q5739', 'P47', {'concept': 'Q13220204'}]]}
SELECT DISTINCT ?r WHERE { { { resource:Q9125 property:P47 ?r } UNION { resource:Q5739 property:P47 ?r } } . ?r rdf:type ontology:Q13220204 }
Castile and León Winterthur
action filter_type
action union
action find
entity Winterthur
relation shares border with
action find
entity Castile and León
relation shares border with
type second-level administrative country subdivision
{'OR': [['Winterthur', 'shares border with', {'concept': 'second-level administrative country subdivision'}], ['Castile and León', 'shares border with', {'concept': 'second-level administrative country subdivision'}]]}
SELECT DISTINCT ?r WHERE { { { resource:Winterthur property:shares_border_with ?r } UNION { resource:Castile_and_León property:shares_border_with ?r } } . ?r rdf:type ontology:second-level_administrative_country_subdivision }
[]
second-level administrative country subdivision
Q64873 Q3946 Q65779 Q65040 Q68457 Q68390 Q64967 Q65805 Q65812 Q65759
SYSTEM
Some of them are Illnau-Effretikon, Cantabria, Kyburg, Neftenbach, Rickenbach, Schlatt bei Winterthur, Hettlingen, Seuzach, Brütten, Lindau
Q68457 Q65805 Q68390 Q65040 Q67211 Q65779 Q64832 Q65812 Q3946 Q65119 Q64873 Q65512 Q3934 Q65759 Q64967 Q65795 Q64853
OR((Q9125,P47,c(Q13220204)), (Q5739,P47,c(Q13220204)))
action filter_type
action union
action find
entity Q9125
relation P47
action find
entity Q5739
relation P47
type Q13220204
[ANSWERS] have a shared border with Winterthur or Castile and León
{'OR': [['Q9125', 'P47', {'concept': 'Q13220204'}], ['Q5739', 'P47', {'concept': 'Q13220204'}]]}
SELECT DISTINCT ?r WHERE { { { resource:Q9125 property:P47 ?r } UNION { resource:Q5739 property:P47 ?r } } . ?r rdf:type ontology:Q13220204 }
Rickenbach Seuzach Schlatt bei Winterthur Neftenbach Zell Kyburg Elsau Brütten Cantabria Pfungen Illnau-Effretikon Oberembrach Asturias Lindau Hettlingen Dinhard Wiesendangen
Illnau-Effretikon, Cantabria, Kyburg, Neftenbach, Rickenbach, Schlatt bei Winterthur, Hettlingen, Seuzach, Brütten and Lindau have a shared border with Winterthur or Castile and León
Illnau-Effretikon Cantabria Kyburg Neftenbach Rickenbach Schlatt bei Winterthur Hettlingen Seuzach Brütten Lindau
action filter_type
action union
action find
entity Winterthur
relation shares border with
action find
entity Castile and León
relation shares border with
type second-level administrative country subdivision
{'OR': [['Winterthur', 'shares border with', {'concept': 'second-level administrative country subdivision'}], ['Castile and León', 'shares border with', {'concept': 'second-level administrative country subdivision'}]]}
SELECT DISTINCT ?r WHERE { { { resource:Winterthur property:shares_border_with ?r } UNION { resource:Castile_and_León property:shares_border_with ?r } } . ?r rdf:type ontology:second-level_administrative_country_subdivision }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P17
Q15617994
USER
How many administrative territories are that administrative country subdivision present in ?
(Q68390,P17,c(Q15617994))
['Q68390', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q68390 property:Q6256 ?z . ?z rdf:type ontology:Q15617994 }
['Schlatt bei Winterthur', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Schlatt_bei_Winterthur property:country ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Quantitative|Count|Single entity type|Clarification
Q65040
SYSTEM
Did you mean Neftenbach ?
(Q64873,P17,c(Q15617994)) (Q3946,P17,c(Q15617994)) (Q65779,P17,c(Q15617994)) (Q65040,P17,c(Q15617994)) (Q68457,P17,c(Q15617994)) (Q68390,P17,c(Q15617994)) (Q64967,P17,c(Q15617994)) (Q65805,P17,c(Q15617994)) (Q65812,P17,c(Q15617994)) (Q65759,P17,c(Q15617994))
[ANSWER]
['Q64873', 'P17', {'concept': 'Q15617994'}] ['Q3946', 'P17', {'concept': 'Q15617994'}] ['Q65779', 'P17', {'concept': 'Q15617994'}] ['Q65040', 'P17', {'concept': 'Q15617994'}] ['Q68457', 'P17', {'concept': 'Q15617994'}] ['Q68390', 'P17', {'concept': 'Q15617994'}] ['Q64967', 'P17', {'concept': 'Q15617994'}] ['Q65805', 'P17', {'concept': 'Q15617994'}] ['Q65812', 'P17', {'concept': 'Q15617994'}] ['Q65759', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q68390 property:Q6256 ?z . ?z rdf:type ontology:Q15617994 }
Did you mean Neftenbach ?
Neftenbach
['Illnau-Effretikon', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Cantabria', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Kyburg', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Neftenbach', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Rickenbach', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Schlatt bei Winterthur', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Hettlingen', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Seuzach', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Brütten', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Lindau', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Schlatt_bei_Winterthur property:country ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Schlatt bei Winterthur. Could you tell me the answer for that?
(Q68390,P17,c(Q15617994))
Q68390
['Q68390', 'P17', {'concept': 'Q15617994'}]
['Schlatt bei Winterthur', 'country', {'concept': 'designation for an administrative territorial entity'}]
[]
SYSTEM
1
Q39
(Q68390,P17,c(Q15617994))
[ANSWER]
['Q68390', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q68390 property:Q6256 ?z . ?z rdf:type ontology:Q15617994 }
Switzerland
1
['Schlatt bei Winterthur', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Schlatt_bei_Winterthur property:country ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q7296047 Q65759
P17
Q15617994
USER
Which administrative territories are Lindau or Ratu, Nepal present in ?
OR((Q65759,P17,c(Q15617994)), (Q7296047,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q65759
relation P17
action find
entity Q7296047
relation P17
type Q15617994
{'OR': [['Q65759', 'P17', {'concept': 'Q15617994'}], ['Q7296047', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?k WHERE { { VALUES ( ?r ) { ( resource:Q7296047 ) ( resource:Q65759 ) } . ?r property:P17 ?k } . ?k rdf:type ontology:Q15617994 }
Ratu, Nepal Lindau
action filter_type
action union
action find
entity Lindau
relation country
action find
entity Ratu, Nepal
relation country
type designation for an administrative territorial entity
{'OR': [['Lindau', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Ratu, Nepal', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?k WHERE { { VALUES ( ?r ) { ( resource:Ratu,_Nepal ) ( resource:Lindau ) } . ?r property:country ?k } . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q39 Q837
SYSTEM
Switzerland, Nepal
Q39 Q837
OR((Q65759,P17,c(Q15617994)), (Q7296047,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q65759
relation P17
action find
entity Q7296047
relation P17
type Q15617994
[ANSWERS]
{'OR': [['Q65759', 'P17', {'concept': 'Q15617994'}], ['Q7296047', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?k WHERE { { VALUES ( ?r ) { ( resource:Q7296047 ) ( resource:Q65759 ) } . ?r property:P17 ?k } . ?k rdf:type ontology:Q15617994 }
Switzerland Nepal
Which administrative territories are Lindau or Ratu, Nepal present in
Switzerland Nepal
action filter_type
action union
action find
entity Lindau
relation country
action find
entity Ratu, Nepal
relation country
type designation for an administrative territorial entity
{'OR': [['Lindau', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Ratu, Nepal', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?k WHERE { { VALUES ( ?r ) { ( resource:Ratu,_Nepal ) ( resource:Lindau ) } . ?r property:country ?k } . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q39 Q837
P530
Q1048835
USER
Which political territories have diplomatic relations with Switzerland and Nepal ?
(Q39,P530,c(Q1048835)) (Q837,P530,c(Q1048835))
action union
action filter_type
action find
entity Q39
relation P530
type Q1048835
action filter_type
action find
entity Q837
relation P530
type Q1048835
['Q39', 'P530', {'concept': 'Q1048835'}] ['Q837', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?r WHERE { { resource:Q39 property:P530 ?r . ?r rdf:type ontology:Q1048835 } UNION { resource:Q837 property:P530 ?r . ?r rdf:type ontology:Q1048835 } }
Switzerland Nepal
action union
action filter_type
action find
entity Switzerland
relation diplomatic relation
type political territorial entity
action filter_type
action find
entity Nepal
relation diplomatic relation
type political territorial entity
['Switzerland', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Nepal', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?r WHERE { { resource:Switzerland property:diplomatic_relation ?r . ?r rdf:type ontology:political_territorial_entity } UNION { resource:Nepal property:diplomatic_relation ?r . ?r rdf:type ontology:political_territorial_entity } }
[]
political territorial entity
Q183 Q408 Q408
SYSTEM
Australia for 2nd, 3rd, Germany for 1st
Q183 Q408 Q16 Q408
(Q39,P530,c(Q1048835)) (Q837,P530,c(Q1048835))
action union
action filter_type
action find
entity Q39
relation P530
type Q1048835
action filter_type
action find
entity Q837
relation P530
type Q1048835
[ANSWERS]
['Q39', 'P530', {'concept': 'Q1048835'}] ['Q837', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?r WHERE { { resource:Q39 property:P530 ?r . ?r rdf:type ontology:Q1048835 } UNION { resource:Q837 property:P530 ?r . ?r rdf:type ontology:Q1048835 } }
Germany Australia Canada Australia
Germany, Australia and Australia have diplomatic relations with Switzerland and Nepal
Germany Australia Australia
action union
action filter_type
action find
entity Switzerland
relation diplomatic relation
type political territorial entity
action filter_type
action find
entity Nepal
relation diplomatic relation
type political territorial entity
['Switzerland', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Nepal', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?r WHERE { { resource:Switzerland property:diplomatic_relation ?r . ?r rdf:type ontology:political_territorial_entity } UNION { resource:Nepal property:diplomatic_relation ?r . ?r rdf:type ontology:political_territorial_entity } }
[]