Simple Question (Direct)
Simple Question
Q522050
P106
Q12737077
USER
Which occupations are the professions of Karin Lannby ?
(Q522050,P106,c(Q12737077))
action filter_type
action find
entity Q522050
relation P106
type Q12737077
['Q522050', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?h WHERE { resource:Q522050 property:P106 ?h . ?h rdf:type ontology:Q12737077 }
Karin Lannby
action filter_type
action find
entity Karin Lannby
relation occupation
type occupation
['Karin Lannby', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?h WHERE { resource:Karin_Lannby property:occupation ?h . ?h rdf:type ontology:occupation }
[]
occupation
Q1930187 Q14467526 Q33999
SYSTEM
journalist, linguist, actor
Q1930187 Q14467526 Q33999 Q36180 Q49757
(Q522050,P106,c(Q12737077))
action filter_type
action find
entity Q522050
relation P106
type Q12737077
And [ANSWERS] are the professions of Karin Lannby
['Q522050', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?h WHERE { resource:Q522050 property:P106 ?h . ?h rdf:type ontology:Q12737077 }
journalist linguist actor writer poet
And journalist, linguist and actor are the professions of Karin Lannby
journalist linguist actor
action filter_type
action find
entity Karin Lannby
relation occupation
type occupation
['Karin Lannby', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?h WHERE { resource:Karin_Lannby property:occupation ?h . ?h rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q522050
P27
Q15617994
USER
Which administrative territory is that person an inhabitant of ?
(Q1930187,P27,c(Q15617994)) (Q14467526,P27,c(Q15617994)) (Q33999,P27,c(Q15617994))
action filter_type
action find
entity Q522050
relation P27
type Q15617994
['Q1930187', 'P27', {'concept': 'Q15617994'}] ['Q14467526', 'P27', {'concept': 'Q15617994'}] ['Q33999', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { resource:Q522050 property:P27 ?i . ?i rdf:type ontology:Q15617994 }
Karin Lannby
action filter_type
action find
entity Karin Lannby
relation country of citizenship
type designation for an administrative territorial entity
['journalist', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}] ['linguist', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}] ['actor', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:Karin_Lannby property:country_of_citizenship ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q34
SYSTEM
Sweden
Q34
(Q1930187,P27,c(Q15617994)) (Q14467526,P27,c(Q15617994)) (Q33999,P27,c(Q15617994))
action filter_type
action find
entity Q522050
relation P27
type Q15617994
[ANSWER] is that person an inhabitant of
['Q1930187', 'P27', {'concept': 'Q15617994'}] ['Q14467526', 'P27', {'concept': 'Q15617994'}] ['Q33999', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { resource:Q522050 property:P27 ?i . ?i rdf:type ontology:Q15617994 }
Sweden
Sweden is that person an inhabitant of
Sweden
action filter_type
action find
entity Karin Lannby
relation country of citizenship
type designation for an administrative territorial entity
['journalist', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}] ['linguist', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}] ['actor', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:Karin_Lannby property:country_of_citizenship ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q34
P27
Q82799 Q15809678
USER
How many names or financial products are a native of Sweden ?
(c(Q82799),P27,Q34) (c(Q15809678),P27,Q34)
action count
action union
action filter_type
action find_reverse
entity Q34
relation P27
type Q82799
action filter_type
action find_reverse
entity Q34
relation P27
type Q15809678
[{'concept': 'Q82799'}, 'P27', 'Q34'] [{'concept': 'Q15809678'}, 'P27', 'Q34']
SELECT DISTINCT ( COUNT ( ?z ) AS ?j ) WHERE { { ?z property:P27 resource:Q34 . ?z rdf:type ontology:Q15809678 } UNION { ?z property:P27 resource:Q34 . ?z rdf:type ontology:Q82799 } }
Sweden
action count
action union
action filter_type
action find_reverse
entity Sweden
relation country of citizenship
type name
action filter_type
action find_reverse
entity Sweden
relation country of citizenship
type financial product
[{'concept': 'name'}, 'country of citizenship', 'Sweden'] [{'concept': 'financial product'}, 'country of citizenship', 'Sweden']
SELECT DISTINCT ( COUNT ( ?z ) AS ?j ) WHERE { { ?z property:country_of_citizenship resource:Sweden . ?z rdf:type ontology:financial_product } UNION { ?z property:country_of_citizenship resource:Sweden . ?z rdf:type ontology:name } }
[]
name financial product
SYSTEM
3
Q10539478 Q23537971 Q7802924
(c(Q82799),P27,Q34) (c(Q15809678),P27,Q34)
action count
action union
action filter_type
action find_reverse
entity Q34
relation P27
type Q82799
action filter_type
action find_reverse
entity Q34
relation P27
type Q15809678
[ANSWER]
[{'concept': 'Q82799'}, 'P27', 'Q34'] [{'concept': 'Q15809678'}, 'P27', 'Q34']
SELECT DISTINCT ( COUNT ( ?z ) AS ?j ) WHERE { { ?z property:P27 resource:Q34 . ?z rdf:type ontology:Q15809678 } UNION { ?z property:P27 resource:Q34 . ?z rdf:type ontology:Q82799 } }
Jan-Jöran Stenhagen Mäster Hillebrandt Tilläggspension
3
action count
action union
action filter_type
action find_reverse
entity Sweden
relation country of citizenship
type name
action filter_type
action find_reverse
entity Sweden
relation country of citizenship
type financial product
[{'concept': 'name'}, 'country of citizenship', 'Sweden'] [{'concept': 'financial product'}, 'country of citizenship', 'Sweden']
SELECT DISTINCT ( COUNT ( ?z ) AS ?j ) WHERE { { ?z property:country_of_citizenship resource:Sweden . ?z rdf:type ontology:financial_product } UNION { ?z property:country_of_citizenship resource:Sweden . ?z rdf:type ontology:name } }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q34
P17
Q15617994
USER
Which administrative territory is that one situated in ?
action filter_type
action find
entity Q34
relation P17
type Q15617994
SELECT DISTINCT ?a WHERE { resource:Q34 property:P17 ?a . ?a rdf:type ontology:Q15617994 }
Sweden
action filter_type
action find
entity Sweden
relation country
type designation for an administrative territorial entity
SELECT DISTINCT ?a WHERE { resource:Sweden property:country ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q34
SYSTEM
Sweden
Q34
action filter_type
action find
entity Q34
relation P17
type Q15617994
That one is situated in [ANSWER]
SELECT DISTINCT ?a WHERE { resource:Q34 property:P17 ?a . ?a rdf:type ontology:Q15617994 }
Sweden
That one is situated in Sweden
Sweden
action filter_type
action find
entity Sweden
relation country
type designation for an administrative territorial entity
SELECT DISTINCT ?a WHERE { resource:Sweden property:country ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q156749 Q34
P27 P17
Q15617994
USER
Which administrative territories are Sweden present in or are the countries of citizenship of Adolf Erik Nordenskiöld ?
OR((Q34,P17,c(Q15617994)), (Q156749,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q34
relation P17
action find
entity Q156749
relation P27
type Q15617994
{'OR': [['Q34', 'P17', {'concept': 'Q15617994'}], ['Q156749', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Q34 property:P17 ?k } UNION { resource:Q156749 property:P27 ?k } } . ?k rdf:type ontology:Q15617994 }
Adolf Erik Nordenskiöld Sweden
action filter_type
action union
action find
entity Sweden
relation country
action find
entity Adolf Erik Nordenskiöld
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Sweden', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Adolf Erik Nordenskiöld', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Sweden property:country ?k } UNION { resource:Adolf_Erik_Nordenskiöld property:country_of_citizenship ?k } } . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q33 Q34
SYSTEM
Finland, Sweden
Q33 Q34
OR((Q34,P17,c(Q15617994)), (Q156749,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q34
relation P17
action find
entity Q156749
relation P27
type Q15617994
Are [ANSWERS] are Sweden present in or are the countries of citizenship of Adolf Erik Nordenskiöld
{'OR': [['Q34', 'P17', {'concept': 'Q15617994'}], ['Q156749', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Q34 property:P17 ?k } UNION { resource:Q156749 property:P27 ?k } } . ?k rdf:type ontology:Q15617994 }
Finland Sweden
Are Finland and Sweden are Sweden present in or are the countries of citizenship of Adolf Erik Nordenskiöld
Finland Sweden
action filter_type
action union
action find
entity Sweden
relation country
action find
entity Adolf Erik Nordenskiöld
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Sweden', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Adolf Erik Nordenskiöld', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Sweden property:country ?k } UNION { resource:Adolf_Erik_Nordenskiöld property:country_of_citizenship ?k } } . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P530
Q15617994 Q15617994 Q1048835
USER
Which administrative territories have diplomatic relationships with exactly 6 administrative territories and political territories ?
(c(Q15617994)|c(Q1048835),P530,c(Q15617994))
action equal
action union
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q1048835
value 6
[[{'concept': 'Q15617994'}, {'concept': 'Q1048835'}], 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?b ) AS ?u ) WHERE { VALUES ( ?x ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } . ?b rdf:type ?x } GROUP BY ?e } . FILTER ( ?u = 6 ) }
action equal
action union
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
value 6
[[{'concept': 'designation for an administrative territorial entity'}, {'concept': 'political territorial entity'}], 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?b ) AS ?u ) WHERE { VALUES ( ?x ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } . ?b rdf:type ?x } GROUP BY ?e } . FILTER ( ?u = 6 ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity political territorial entity
Q36 Q114 Q212
SYSTEM
Poland, Kenya, Ukraine
Q37 Q889 Q881 Q822 Q241 Q36 Q39 Q739 Q851 Q222 Q1033 Q115 Q114 Q212
(c(Q15617994)|c(Q1048835),P530,c(Q15617994))
action equal
action union
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q1048835
value 6
[ANSWERS] have diplomatic relationships with exactly 6 administrative territories and political territories
[[{'concept': 'Q15617994'}, {'concept': 'Q1048835'}], 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?b ) AS ?u ) WHERE { VALUES ( ?x ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } . ?b rdf:type ?x } GROUP BY ?e } . FILTER ( ?u = 6 ) }
Lithuania Afghanistan Vietnam Lebanon Cuba Poland Switzerland Colombia Saudi Arabia Albania Nigeria Ethiopia Kenya Ukraine
Poland, Kenya and Ukraine have diplomatic relationships with exactly 6 administrative territories and political territories
Poland Kenya Ukraine
action equal
action union
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
value 6
[[{'concept': 'designation for an administrative territorial entity'}, {'concept': 'political territorial entity'}], 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?b ) AS ?u ) WHERE { VALUES ( ?x ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } . ?b rdf:type ?x } GROUP BY ?e } . FILTER ( ?u = 6 ) }
[]