Simple Question (Direct)
Simple Question
Q6272412
P172
Q2472587
USER
Which people does Jonathan Akinyemi have as ethnic origin ?
(Q6272412,P172,c(Q2472587))
action filter_type
action find
entity Q6272412
relation P172
type Q2472587
['Q6272412', 'P172', {'concept': 'Q2472587'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q2472587 . resource:Q6272412 property:P172 ?m }
Jonathan Akinyemi
action filter_type
action find
entity Jonathan Akinyemi
relation ethnic group
type people
['Jonathan Akinyemi', 'ethnic group', {'concept': 'people'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:people . resource:Jonathan_Akinyemi property:ethnic_group ?m }
[]
people
Q190168
SYSTEM
Yoruba people
Q190168
(Q6272412,P172,c(Q2472587))
action filter_type
action find
entity Q6272412
relation P172
type Q2472587
Jonathan Akinyemi has included [ANSWER] as ethnic origin
['Q6272412', 'P172', {'concept': 'Q2472587'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q2472587 . resource:Q6272412 property:P172 ?m }
Yoruba people
Jonathan Akinyemi has included Yoruba people as ethnic origin
Yoruba people
action filter_type
action find
entity Jonathan Akinyemi
relation ethnic group
type people
['Jonathan Akinyemi', 'ethnic group', {'concept': 'people'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:people . resource:Jonathan_Akinyemi property:ethnic_group ?m }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q190168
P170
Q214609
USER
What did that people make ?
(c(Q214609),P170,Q190168)
action filter_type
action find_reverse
entity Q190168
relation P170
type Q214609
[{'concept': 'Q214609'}, 'P170', 'Q190168']
SELECT DISTINCT ?c WHERE { ?c property:P170 resource:Q190168 . ?c rdf:type ontology:Q214609 }
Yoruba people
action filter_type
action find_reverse
entity Yoruba people
relation creator
type material
[{'concept': 'material'}, 'creator', 'Yoruba people']
SELECT DISTINCT ?c WHERE { ?c property:creator resource:Yoruba_people . ?c rdf:type ontology:material }
[]
material
Q4807472
SYSTEM
aso oke
Q4807472
(c(Q214609),P170,Q190168)
action filter_type
action find_reverse
entity Q190168
relation P170
type Q214609
[ANSWER] that people made
[{'concept': 'Q214609'}, 'P170', 'Q190168']
SELECT DISTINCT ?c WHERE { ?c property:P170 resource:Q190168 . ?c rdf:type ontology:Q214609 }
aso oke
Aso oke that people made
aso oke
action filter_type
action find_reverse
entity Yoruba people
relation creator
type material
[{'concept': 'material'}, 'creator', 'Yoruba people']
SELECT DISTINCT ?c WHERE { ?c property:creator resource:Yoruba_people . ?c rdf:type ontology:material }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q8026671 Q6272412
P27 P17
Q15617994
USER
Which administrative territories do Jonathan Akinyemi belong to or are Wioska, Oleśnica County situated in ?
OR((Q6272412,P27,c(Q15617994)), (Q8026671,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q6272412
relation P27
action find
entity Q8026671
relation P17
type Q15617994
{'OR': [['Q6272412', 'P27', {'concept': 'Q15617994'}], ['Q8026671', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Q6272412 property:P27 ?s } UNION { resource:Q8026671 property:P17 ?s } } . ?s rdf:type ontology:Q15617994 }
Wioska, Oleśnica County Jonathan Akinyemi
action filter_type
action union
action find
entity Jonathan Akinyemi
relation country of citizenship
action find
entity Wioska, Oleśnica County
relation country
type designation for an administrative territorial entity
{'OR': [['Jonathan Akinyemi', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Wioska, Oleśnica County', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Jonathan_Akinyemi property:country_of_citizenship ?s } UNION { resource:Wioska,_Oleśnica_County property:country ?s } } . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q1033 Q36
SYSTEM
Nigeria, Poland
Q1033 Q36
OR((Q6272412,P27,c(Q15617994)), (Q8026671,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q6272412
relation P27
action find
entity Q8026671
relation P17
type Q15617994
Jonathan Akinyemi belong to [ANSWERS]
{'OR': [['Q6272412', 'P27', {'concept': 'Q15617994'}], ['Q8026671', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Q6272412 property:P27 ?s } UNION { resource:Q8026671 property:P17 ?s } } . ?s rdf:type ontology:Q15617994 }
Nigeria Poland
Jonathan Akinyemi belong to Nigeria and Poland
Nigeria Poland
action filter_type
action union
action find
entity Jonathan Akinyemi
relation country of citizenship
action find
entity Wioska, Oleśnica County
relation country
type designation for an administrative territorial entity
{'OR': [['Jonathan Akinyemi', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Wioska, Oleśnica County', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Jonathan_Akinyemi property:country_of_citizenship ?s } UNION { resource:Wioska,_Oleśnica_County property:country ?s } } . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q36 Q3977434
P127
Q41176
USER
How many buildings are owned by Poland or Sisters of Providence of Saint Mary-of-the-Woods ?
(c(Q41176),P127,Q36) (c(Q41176),P127,Q3977434)
action count
action union
action filter_type
action find_reverse
entity Q36
relation P127
type Q41176
action filter_type
action find_reverse
entity Q3977434
relation P127
type Q41176
[{'concept': 'Q41176'}, 'P127', 'Q36'] [{'concept': 'Q41176'}, 'P127', 'Q3977434']
SELECT DISTINCT ( COUNT ( ?q ) AS ?y ) WHERE { ?q property:P127 ?a . VALUES ( ?a ) { ( resource:Q36 ) ( resource:Q3977434 ) } }
Poland Sisters of Providence of Saint Mary-of-the-Woods
action count
action union
action filter_type
action find_reverse
entity Poland
relation owned by
type building
action filter_type
action find_reverse
entity Sisters of Providence of Saint Mary-of-the-Woods
relation owned by
type building
[{'concept': 'building'}, 'owned by', 'Poland'] [{'concept': 'building'}, 'owned by', 'Sisters of Providence of Saint Mary-of-the-Woods']
SELECT DISTINCT ( COUNT ( ?q ) AS ?y ) WHERE { ?q property:owned_by ?a . VALUES ( ?a ) { ( resource:Poland ) ( resource:Sisters_of_Providence_of_Saint_Mary-of-the-Woods ) } }
[]
building
SYSTEM
2
Q14688300 Q7587033
(c(Q41176),P127,Q36) (c(Q41176),P127,Q3977434)
action count
action union
action filter_type
action find_reverse
entity Q36
relation P127
type Q41176
action filter_type
action find_reverse
entity Q3977434
relation P127
type Q41176
[ANSWER]
[{'concept': 'Q41176'}, 'P127', 'Q36'] [{'concept': 'Q41176'}, 'P127', 'Q3977434']
SELECT DISTINCT ( COUNT ( ?q ) AS ?y ) WHERE { ?q property:P127 ?a . VALUES ( ?a ) { ( resource:Q36 ) ( resource:Q3977434 ) } }
Blessed Sacrament Chapel St. Anne Shell Chapel
2
action count
action union
action filter_type
action find_reverse
entity Poland
relation owned by
type building
action filter_type
action find_reverse
entity Sisters of Providence of Saint Mary-of-the-Woods
relation owned by
type building
[{'concept': 'building'}, 'owned by', 'Poland'] [{'concept': 'building'}, 'owned by', 'Sisters of Providence of Saint Mary-of-the-Woods']
SELECT DISTINCT ( COUNT ( ?q ) AS ?y ) WHERE { ?q property:owned_by ?a . VALUES ( ?a ) { ( resource:Poland ) ( resource:Sisters_of_Providence_of_Saint_Mary-of-the-Woods ) } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q1048835
USER
How many political territories are known to have diplomatic connections with approximately 45 administrative territories ?
(c(Q1048835),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 45
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?g ) WHERE { FILTER ( ?p = 45 ) . { SELECT DISTINCT ?z ( COUNT ( ?f ) AS ?p ) WHERE { ?z property:P530 ?f . ?z rdf:type ontology:Q1048835 . ?f rdf:type ontology:Q15617994 } GROUP BY ?z } }
action count
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 45
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?g ) WHERE { FILTER ( ?p = 45 ) . { SELECT DISTINCT ?z ( COUNT ( ?f ) AS ?p ) WHERE { ?z property:diplomatic_relation ?f . ?z rdf:type ontology:political_territorial_entity . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?z } }
[]
designation for an administrative territorial entity political territorial entity
SYSTEM
2
Q40 Q16
(c(Q1048835),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 45
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?g ) WHERE { FILTER ( ?p = 45 ) . { SELECT DISTINCT ?z ( COUNT ( ?f ) AS ?p ) WHERE { ?z property:P530 ?f . ?z rdf:type ontology:Q1048835 . ?f rdf:type ontology:Q15617994 } GROUP BY ?z } }
Austria Canada
2
action count
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 45
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?g ) WHERE { FILTER ( ?p = 45 ) . { SELECT DISTINCT ?z ( COUNT ( ?f ) AS ?p ) WHERE { ?z property:diplomatic_relation ?f . ?z rdf:type ontology:political_territorial_entity . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?z } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q36
P163
Q14660
USER
What is associated with Poland ?
(Q36,P163,c(Q14660))
action filter_type
action find
entity Q36
relation P163
type Q14660
['Q36', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q14660 . resource:Q36 property:P163 ?s }
Poland
action filter_type
action find
entity Poland
relation flag
type flag
['Poland', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:flag . resource:Poland property:flag ?s }
[]
flag
Q42436
SYSTEM
Flag of Poland
Q42436
(Q36,P163,c(Q14660))
action filter_type
action find
entity Q36
relation P163
type Q14660
Are [ANSWER] is associated with Poland
['Q36', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q14660 . resource:Q36 property:P163 ?s }
Flag of Poland
Are Flag of Poland is associated with Poland
Flag of Poland
action filter_type
action find
entity Poland
relation flag
type flag
['Poland', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:flag . resource:Poland property:flag ?s }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q1042
Q14660
USER
And also tell me about Seychelles?
(Q1042,P163,c(Q14660))
action filter_type
action find
entity Q1042
relation P163
type Q14660
['Q1042', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?l WHERE { resource:Q1042 property:P163 ?l . ?l rdf:type ontology:Q14660 }
Seychelles
action filter_type
action find
entity Seychelles
relation flag
type flag
['Seychelles', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?l WHERE { resource:Seychelles property:flag ?l . ?l rdf:type ontology:flag }
[]
flag
Q173201
SYSTEM
Flag of the Seychelles
Q173201
(Q1042,P163,c(Q14660))
action filter_type
action find
entity Q1042
relation P163
type Q14660
[ANSWER]
['Q1042', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?l WHERE { resource:Q1042 property:P163 ?l . ?l rdf:type ontology:Q14660 }
Flag of the Seychelles
Flag of the Seychelles
action filter_type
action find
entity Seychelles
relation flag
type flag
['Seychelles', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?l WHERE { resource:Seychelles property:flag ?l . ?l rdf:type ontology:flag }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q843 Q83328
P172
Q502895
USER
How many people have Pakistan or Turkic peoples as his/her ethnicity ?
(c(Q502895),P172,Q843) (c(Q502895),P172,Q83328)
action count
action union
action filter_type
action find_reverse
entity Q843
relation P172
type Q502895
action filter_type
action find_reverse
entity Q83328
relation P172
type Q502895
[{'concept': 'Q502895'}, 'P172', 'Q843'] [{'concept': 'Q502895'}, 'P172', 'Q83328']
SELECT DISTINCT ( COUNT ( ?u ) AS ?a ) WHERE { { ?u property:P172 resource:Q843 . ?u rdf:type ontology:Q502895 } UNION { ?u property:P172 resource:Q83328 . ?u rdf:type ontology:Q502895 } }
Pakistan Turkic peoples
action count
action union
action filter_type
action find_reverse
entity Pakistan
relation ethnic group
type common name
action filter_type
action find_reverse
entity Turkic peoples
relation ethnic group
type common name
[{'concept': 'common name'}, 'ethnic group', 'Pakistan'] [{'concept': 'common name'}, 'ethnic group', 'Turkic peoples']
SELECT DISTINCT ( COUNT ( ?u ) AS ?a ) WHERE { { ?u property:ethnic_group resource:Pakistan . ?u rdf:type ontology:common_name } UNION { ?u property:ethnic_group resource:Turkic_peoples . ?u rdf:type ontology:common_name } }
[]
common name
SYSTEM
3
Q15627843 Q423644 Q6123173
(c(Q502895),P172,Q843) (c(Q502895),P172,Q83328)
action count
action union
action filter_type
action find_reverse
entity Q843
relation P172
type Q502895
action filter_type
action find_reverse
entity Q83328
relation P172
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P172', 'Q843'] [{'concept': 'Q502895'}, 'P172', 'Q83328']
SELECT DISTINCT ( COUNT ( ?u ) AS ?a ) WHERE { { ?u property:P172 resource:Q843 . ?u rdf:type ontology:Q502895 } UNION { ?u property:P172 resource:Q83328 . ?u rdf:type ontology:Q502895 } }
Nasreddin Murat-Khan Ali Qushji Jahangir Wasim
3
action count
action union
action filter_type
action find_reverse
entity Pakistan
relation ethnic group
type common name
action filter_type
action find_reverse
entity Turkic peoples
relation ethnic group
type common name
[{'concept': 'common name'}, 'ethnic group', 'Pakistan'] [{'concept': 'common name'}, 'ethnic group', 'Turkic peoples']
SELECT DISTINCT ( COUNT ( ?u ) AS ?a ) WHERE { { ?u property:ethnic_group resource:Pakistan . ?u rdf:type ontology:common_name } UNION { ?u property:ethnic_group resource:Turkic_peoples . ?u rdf:type ontology:common_name } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q36
P138
Q17444909
USER
Which astronomical object type comes from Poland ?
(c(Q17444909),P138,Q36)
action filter_type
action find_reverse
entity Q36
relation P138
type Q17444909
[{'concept': 'Q17444909'}, 'P138', 'Q36']
SELECT DISTINCT ?n WHERE { ?n property:P138 resource:Q36 . ?n rdf:type ontology:Q17444909 }
Poland
action filter_type
action find_reverse
entity Poland
relation named after
type astronomical object type
[{'concept': 'astronomical object type'}, 'named after', 'Poland']
SELECT DISTINCT ?n WHERE { ?n property:named_after resource:Poland . ?n rdf:type ontology:astronomical_object_type }
[]
astronomical object type
Q136091
SYSTEM
1112 Polonia
Q136091
(c(Q17444909),P138,Q36)
action filter_type
action find_reverse
entity Q36
relation P138
type Q17444909
[ANSWER] comes from Poland
[{'concept': 'Q17444909'}, 'P138', 'Q36']
SELECT DISTINCT ?n WHERE { ?n property:P138 resource:Q36 . ?n rdf:type ontology:Q17444909 }
1112 Polonia
1112 Polonia comes from Poland
1112 Polonia
action filter_type
action find_reverse
entity Poland
relation named after
type astronomical object type
[{'concept': 'astronomical object type'}, 'named after', 'Poland']
SELECT DISTINCT ?n WHERE { ?n property:named_after resource:Poland . ?n rdf:type ontology:astronomical_object_type }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q36
P194
Q1752346
USER
Which assembly is the representative body for Poland ?
(Q36,P194,c(Q1752346))
action filter_type
action find
entity Q36
relation P194
type Q1752346
['Q36', 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q1752346 . resource:Q36 property:P194 ?w }
Poland
action filter_type
action find
entity Poland
relation legislative body
type assembly
['Poland', 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:assembly . resource:Poland property:legislative_body ?w }
[]
assembly
Q2102558
SYSTEM
Parliament of Poland
Q2102558
(Q36,P194,c(Q1752346))
action filter_type
action find
entity Q36
relation P194
type Q1752346
The [ANSWER] is the representative body for Poland
['Q36', 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q1752346 . resource:Q36 property:P194 ?w }
Parliament of Poland
The Parliament of Poland is the representative body for Poland
Parliament of Poland
action filter_type
action find
entity Poland
relation legislative body
type assembly
['Poland', 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:assembly . resource:Poland property:legislative_body ?w }
[]