Simple Question (Direct)
Simple Question
Q5776889
P27
Q15617994
USER
Which administrative territory is the native country of Jonas Gunnarsson ?
(Q5776889,P27,c(Q15617994))
action filter_type
action find
entity Q5776889
relation P27
type Q15617994
['Q5776889', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { resource:Q5776889 property:P27 ?n . ?n rdf:type ontology:Q15617994 }
Jonas Gunnarsson
action filter_type
action find
entity Jonas Gunnarsson
relation country of citizenship
type designation for an administrative territorial entity
['Jonas Gunnarsson', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Jonas_Gunnarsson property:country_of_citizenship ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q34
SYSTEM
Sweden
Q34
(Q5776889,P27,c(Q15617994))
action filter_type
action find
entity Q5776889
relation P27
type Q15617994
The [ANSWER] is the native country of Jonas Gunnarsson
['Q5776889', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { resource:Q5776889 property:P27 ?n . ?n rdf:type ontology:Q15617994 }
Sweden
The Sweden is the native country of Jonas Gunnarsson
Sweden
action filter_type
action find
entity Jonas Gunnarsson
relation country of citizenship
type designation for an administrative territorial entity
['Jonas Gunnarsson', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Jonas_Gunnarsson property:country_of_citizenship ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5776889
P102
Q7210356
USER
Which party is that person affiliated with ?
(Q34,P102,c(Q7210356))
action filter_type
action find
entity Q5776889
relation P102
type Q7210356
['Q34', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q7210356 . resource:Q5776889 property:P102 ?j }
Jonas Gunnarsson
action filter_type
action find
entity Jonas Gunnarsson
relation member of political party
type political organization
['Sweden', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:political_organization . resource:Jonas_Gunnarsson property:member_of_political_party ?j }
[]
political organization
Q105112
SYSTEM
Swedish Social Democratic Party
Q105112
(Q34,P102,c(Q7210356))
action filter_type
action find
entity Q5776889
relation P102
type Q7210356
That person is affiliated with [ANSWER]
['Q34', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q7210356 . resource:Q5776889 property:P102 ?j }
Swedish Social Democratic Party
That person is affiliated with Swedish Social Democratic Party
Swedish Social Democratic Party
action filter_type
action find
entity Jonas Gunnarsson
relation member of political party
type political organization
['Sweden', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:political_organization . resource:Jonas_Gunnarsson property:member_of_political_party ?j }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q34
P30
Q2221906
USER
Which geographic location is Sweden located in ?
(Q34,P30,c(Q2221906))
action filter_type
action find
entity Q34
relation P30
type Q2221906
['Q34', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?t WHERE { resource:Q34 property:P30 ?t . ?t rdf:type ontology:Q2221906 }
Sweden
action filter_type
action find
entity Sweden
relation continent
type geographic location
['Sweden', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?t WHERE { resource:Sweden property:continent ?t . ?t rdf:type ontology:geographic_location }
[]
geographic location
Q46
SYSTEM
Europe
Q46
(Q34,P30,c(Q2221906))
action filter_type
action find
entity Q34
relation P30
type Q2221906
Sweden is located in [ANSWER]
['Q34', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?t WHERE { resource:Q34 property:P30 ?t . ?t rdf:type ontology:Q2221906 }
Europe
Sweden is located in Europe
Europe
action filter_type
action find
entity Sweden
relation continent
type geographic location
['Sweden', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?t WHERE { resource:Sweden property:continent ?t . ?t rdf:type ontology:geographic_location }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q34
P610
Q107425
USER
Which landscape is the highest point of Sweden ?
(Q34,P610,c(Q107425))
action filter_type
action find
entity Q34
relation P610
type Q107425
['Q34', 'P610', {'concept': 'Q107425'}]
SELECT DISTINCT ?p WHERE { resource:Q34 property:P610 ?p . ?p rdf:type ontology:Q107425 }
Sweden
action filter_type
action find
entity Sweden
relation highest point
type landscape
['Sweden', 'highest point', {'concept': 'landscape'}]
SELECT DISTINCT ?p WHERE { resource:Sweden property:highest_point ?p . ?p rdf:type ontology:landscape }
[]
landscape
Q214011
SYSTEM
Kebnekaise
Q214011
(Q34,P610,c(Q107425))
action filter_type
action find
entity Q34
relation P610
type Q107425
[ANSWER] is the highest point of Sweden
['Q34', 'P610', {'concept': 'Q107425'}]
SELECT DISTINCT ?p WHERE { resource:Q34 property:P610 ?p . ?p rdf:type ontology:Q107425 }
Kebnekaise
Kebnekaise is the highest point of Sweden
Kebnekaise
action filter_type
action find
entity Sweden
relation highest point
type landscape
['Sweden', 'highest point', {'concept': 'landscape'}]
SELECT DISTINCT ?p WHERE { resource:Sweden property:highest_point ?p . ?p rdf:type ontology:landscape }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q499474
Q107425
USER
And how about Kiruna Municipality?
(Q499474,P610,c(Q107425))
action filter_type
action find
entity Q499474
relation P610
type Q107425
['Q499474', 'P610', {'concept': 'Q107425'}]
SELECT DISTINCT ?t WHERE { resource:Q499474 property:P610 ?t . ?t rdf:type ontology:Q107425 }
Kiruna Municipality
action filter_type
action find
entity Kiruna Municipality
relation highest point
type landscape
['Kiruna Municipality', 'highest point', {'concept': 'landscape'}]
SELECT DISTINCT ?t WHERE { resource:Kiruna_Municipality property:highest_point ?t . ?t rdf:type ontology:landscape }
[]
landscape
Q214011
SYSTEM
Kebnekaise
Q214011
(Q499474,P610,c(Q107425))
action filter_type
action find
entity Q499474
relation P610
type Q107425
[ANSWER]
['Q499474', 'P610', {'concept': 'Q107425'}]
SELECT DISTINCT ?t WHERE { resource:Q499474 property:P610 ?t . ?t rdf:type ontology:Q107425 }
Kebnekaise
Kebnekaise
action filter_type
action find
entity Kiruna Municipality
relation highest point
type landscape
['Kiruna Municipality', 'highest point', {'concept': 'landscape'}]
SELECT DISTINCT ?t WHERE { resource:Kiruna_Municipality property:highest_point ?t . ?t rdf:type ontology:landscape }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P706
Q107425 Q107425
USER
Which landscapes are atleast 2 landscapes located on ?
(c(Q107425),P706,c(Q107425))
action atleast
action find_reverse_tuple_counts
relation P706
type Q107425
type Q107425
value 2
[{'concept': 'Q107425'}, 'P706', {'concept': 'Q107425'}]
SELECT DISTINCT ?a WHERE { FILTER ( ?t >= 2 ) . { SELECT DISTINCT ?a ( COUNT ( ?x ) AS ?t ) WHERE { ?x property:P706 ?a . ?a rdf:type ontology:Q107425 . ?x rdf:type ontology:Q107425 } GROUP BY ?a } }
action atleast
action find_reverse_tuple_counts
relation located on terrain feature
type landscape
type landscape
value 2
[{'concept': 'landscape'}, 'located on terrain feature', {'concept': 'landscape'}]
SELECT DISTINCT ?a WHERE { FILTER ( ?t >= 2 ) . { SELECT DISTINCT ?a ( COUNT ( ?x ) AS ?t ) WHERE { ?x property:located_on_terrain_feature ?a . ?a rdf:type ontology:landscape . ?x rdf:type ontology:landscape } GROUP BY ?a } }
[]
landscape landscape
Q1670250 Q6583
SYSTEM
Jenolan Caves, Sahara
Q1670250 Q6583
(c(Q107425),P706,c(Q107425))
action atleast
action find_reverse_tuple_counts
relation P706
type Q107425
type Q107425
value 2
Atleast 2 landscapes are located in [ANSWERS]
[{'concept': 'Q107425'}, 'P706', {'concept': 'Q107425'}]
SELECT DISTINCT ?a WHERE { FILTER ( ?t >= 2 ) . { SELECT DISTINCT ?a ( COUNT ( ?x ) AS ?t ) WHERE { ?x property:P706 ?a . ?a rdf:type ontology:Q107425 . ?x rdf:type ontology:Q107425 } GROUP BY ?a } }
Jenolan Caves Sahara
Atleast 2 landscapes are located in Jenolan Caves and Sahara
Jenolan Caves Sahara
action atleast
action find_reverse_tuple_counts
relation located on terrain feature
type landscape
type landscape
value 2
[{'concept': 'landscape'}, 'located on terrain feature', {'concept': 'landscape'}]
SELECT DISTINCT ?a WHERE { FILTER ( ?t >= 2 ) . { SELECT DISTINCT ?a ( COUNT ( ?x ) AS ?t ) WHERE { ?x property:located_on_terrain_feature ?a . ?a rdf:type ontology:landscape . ?x rdf:type ontology:landscape } GROUP BY ?a } }
[]
Clarification
Comparative|Count over More/Less|Single entity type|Indirect
P189
Q107425 Q386724
USER
How many landscapes are the places of discovery of greater number of works than that landscape ?
(c(Q386724),P189,c(Q107425))
[{'concept': 'Q386724'}, 'P189', {'concept': 'Q107425'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:P189 ?y . ?z rdf:type ontology:Q16532276 . ?y rdf:type ontology:Q17323825 }
[{'concept': 'work'}, 'location of discovery', {'concept': 'landscape'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:location_of_discovery ?y . ?z rdf:type ontology:work . ?y rdf:type ontology:landscape }
[]
landscape work
Comparative|Count over More/Less|Single entity type|Clarification
Q6583
SYSTEM
Did you mean Sahara ?
(c(Q386724),P189,c(Q107425))
[ANSWER]
[{'concept': 'Q386724'}, 'P189', {'concept': 'Q107425'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:P189 ?y . ?z rdf:type ontology:Q16532276 . ?y rdf:type ontology:Q17323825 }
Did you mean Sahara ?
Sahara
[{'concept': 'work'}, 'location of discovery', {'concept': 'landscape'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:location_of_discovery ?y . ?z rdf:type ontology:work . ?y rdf:type ontology:landscape }
[]
Comparative Reasoning (Count) (All)
USER
Yes
(c(Q386724),P189,c(Q107425))
[{'concept': 'Q386724'}, 'P189', {'concept': 'Q107425'}]
[{'concept': 'work'}, 'location of discovery', {'concept': 'landscape'}]
[]
SYSTEM
1
Q6389022
(c(Q386724),P189,c(Q107425))
[ANSWER]
[{'concept': 'Q386724'}, 'P189', {'concept': 'Q107425'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:P189 ?y . ?z rdf:type ontology:Q16532276 . ?y rdf:type ontology:Q17323825 }
Kendrick's Cave
1
[{'concept': 'work'}, 'location of discovery', {'concept': 'landscape'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:location_of_discovery ?y . ?z rdf:type ontology:work . ?y rdf:type ontology:landscape }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q46 Q15
P30
Q15617994
USER
How many administrative territories have their location in Europe and Africa ?
(c(Q15617994),P30,Q46) (c(Q15617994),P30,Q15)
action count
action intersection
action filter_type
action find_reverse
entity Q46
relation P30
type Q15617994
action filter_type
action find_reverse
entity Q15
relation P30
type Q15617994
[{'concept': 'Q15617994'}, 'P30', 'Q46'] [{'concept': 'Q15617994'}, 'P30', 'Q15']
SELECT DISTINCT ( COUNT ( ?r ) AS ?q ) WHERE { ?r property:P30 resource:Q46 . ?r rdf:type ontology:Q15617994 . ?r property:P30 resource:Q15 . ?r rdf:type ontology:Q15617994 }
Europe Africa
action count
action intersection
action filter_type
action find_reverse
entity Europe
relation continent
type designation for an administrative territorial entity
action filter_type
action find_reverse
entity Africa
relation continent
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'continent', 'Europe'] [{'concept': 'designation for an administrative territorial entity'}, 'continent', 'Africa']
SELECT DISTINCT ( COUNT ( ?r ) AS ?q ) WHERE { ?r property:continent resource:Europe . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r property:continent resource:Africa . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
4
Q142 Q29 Q160307 Q8575586
(c(Q15617994),P30,Q46) (c(Q15617994),P30,Q15)
action count
action intersection
action filter_type
action find_reverse
entity Q46
relation P30
type Q15617994
action filter_type
action find_reverse
entity Q15
relation P30
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P30', 'Q46'] [{'concept': 'Q15617994'}, 'P30', 'Q15']
SELECT DISTINCT ( COUNT ( ?r ) AS ?q ) WHERE { ?r property:P30 resource:Q46 . ?r rdf:type ontology:Q15617994 . ?r property:P30 resource:Q15 . ?r rdf:type ontology:Q15617994 }
France Spain Fatimid caliphate Umayyad Caliphate
4
action count
action intersection
action filter_type
action find_reverse
entity Europe
relation continent
type designation for an administrative territorial entity
action filter_type
action find_reverse
entity Africa
relation continent
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'continent', 'Europe'] [{'concept': 'designation for an administrative territorial entity'}, 'continent', 'Africa']
SELECT DISTINCT ( COUNT ( ?r ) AS ?q ) WHERE { ?r property:continent resource:Europe . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r property:continent resource:Africa . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]