Simple Question (Direct)
Simple Question
Q16760795
P106
Q12737077
USER
Which occupation is the profession of Olav Sveinsson ?
(Q16760795,P106,c(Q12737077))
action filter_type
action find
entity Q16760795
relation P106
type Q12737077
['Q16760795', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?e WHERE { resource:Q16760795 property:P106 ?e . ?e rdf:type ontology:Q12737077 }
Olav Sveinsson
action filter_type
action find
entity Olav Sveinsson
relation occupation
type occupation
['Olav Sveinsson', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?e WHERE { resource:Olav_Sveinsson property:occupation ?e . ?e rdf:type ontology:occupation }
[]
occupation
Q82955
SYSTEM
politician
Q82955
(Q16760795,P106,c(Q12737077))
action filter_type
action find
entity Q16760795
relation P106
type Q12737077
[ANSWER] is the profession of Olav Sveinsson
['Q16760795', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?e WHERE { resource:Q16760795 property:P106 ?e . ?e rdf:type ontology:Q12737077 }
politician
Politician is the profession of Olav Sveinsson
politician
action filter_type
action find
entity Olav Sveinsson
relation occupation
type occupation
['Olav Sveinsson', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?e WHERE { resource:Olav_Sveinsson property:occupation ?e . ?e rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q16760795
P27
Q15617994
USER
Which administrative territory is the native country of Olav Sveinsson ?
(Q16760795,P27,c(Q15617994))
action filter_type
action find
entity Q16760795
relation P27
type Q15617994
['Q16760795', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { resource:Q16760795 property:P27 ?r . ?r rdf:type ontology:Q15617994 }
Olav Sveinsson
action filter_type
action find
entity Olav Sveinsson
relation country of citizenship
type designation for an administrative territorial entity
['Olav Sveinsson', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { resource:Olav_Sveinsson property:country_of_citizenship ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q20
SYSTEM
Norway
Q20
(Q16760795,P27,c(Q15617994))
action filter_type
action find
entity Q16760795
relation P27
type Q15617994
In [ANSWER] is the native country of Olav Sveinsson
['Q16760795', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { resource:Q16760795 property:P27 ?r . ?r rdf:type ontology:Q15617994 }
Norway
In Norway is the native country of Olav Sveinsson
Norway
action filter_type
action find
entity Olav Sveinsson
relation country of citizenship
type designation for an administrative territorial entity
['Olav Sveinsson', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { resource:Olav_Sveinsson property:country_of_citizenship ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q16760795
P39
Q12737077
USER
Which occupation was a position held by Olav Sveinsson ?
(Q16760795,P39,c(Q12737077))
action filter_type
action find
entity Q16760795
relation P39
type Q12737077
['Q16760795', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?t WHERE { resource:Q16760795 property:P39 ?t . ?t rdf:type ontology:Q12737077 }
Olav Sveinsson
action filter_type
action find
entity Olav Sveinsson
relation position held
type occupation
['Olav Sveinsson', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?t WHERE { resource:Olav_Sveinsson property:position_held ?t . ?t rdf:type ontology:occupation }
[]
occupation
Q9045502
SYSTEM
member of the Parliament of Norway
Q9045502
(Q16760795,P39,c(Q12737077))
action filter_type
action find
entity Q16760795
relation P39
type Q12737077
The [ANSWER] was a position held by Olav Sveinsson
['Q16760795', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?t WHERE { resource:Q16760795 property:P39 ?t . ?t rdf:type ontology:Q12737077 }
member of the Parliament of Norway
The member of the Parliament of Norway was a position held by Olav Sveinsson
member of the Parliament of Norway
action filter_type
action find
entity Olav Sveinsson
relation position held
type occupation
['Olav Sveinsson', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?t WHERE { resource:Olav_Sveinsson property:position_held ?t . ?t rdf:type ontology:occupation }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P417
Q502895 Q12737077
USER
How many people are the patron saints of exactly 1 occupation ?
(c(Q12737077),P417,c(Q502895))
action count
action equal
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
value 1
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?s ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?a ) AS ?p ) WHERE { ?q rdf:type ontology:Q502895 . ?a rdf:type ontology:Q12737077 . ?a property:P417 ?q } GROUP BY ?q } . FILTER ( ?p = 1 ) }
action count
action equal
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
value 1
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?s ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?a ) AS ?p ) WHERE { ?q rdf:type ontology:common_name . ?a rdf:type ontology:occupation . ?a property:patron_saint ?q } GROUP BY ?q } . FILTER ( ?p = 1 ) }
[]
common name occupation
SYSTEM
38
Q453698 Q152457 Q43689 Q163900 Q212850 Q374822 Q9438 Q130997 Q312758 Q5575577 Q191107 Q242274 Q119289 Q360798 Q298845 Q48438 Q119512 Q44281 Q170164 Q43399 Q508214 Q9200 Q193507 Q463600 Q43669 Q40662 Q332656 Q320171 Q137947 Q80513 Q324700 Q44015 Q149727 Q232427 Q60059 Q17590 Q271474 Q276148
(c(Q12737077),P417,c(Q502895))
action count
action equal
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
value 1
[ANSWER]
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?s ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?a ) AS ?p ) WHERE { ?q rdf:type ontology:Q502895 . ?a rdf:type ontology:Q12737077 . ?a property:P417 ?q } GROUP BY ?q } . FILTER ( ?p = 1 ) }
Saint Amand Saint Roch Ambrose Saint Francis Xavier Vitus Adrian of Nicomedia Thomas Aquinas Damasus I Jean-Baptiste de La Salle Gobnait Clare of Assisi Dorothea of Caesarea Leonard of Port Maurice Saint Eligius Saint Florian Saint George William of Maleval Ignatius of Loyola Helena of Constantinople Andrew Cyriacus Paul Saint Christopher Saint Petronilla Thomas the Apostle John the Baptist Camillus de Lellis John of God Alexius of Rome Saint Cecilia Urban of Langres John the Apostle Saint Giles Saint Apollonia Albertus Magnus Lawrence of Rome Joseph of Arimathea Charalampus
38
action count
action equal
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
value 1
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?s ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?a ) AS ?p ) WHERE { ?q rdf:type ontology:common_name . ?a rdf:type ontology:occupation . ?a property:patron_saint ?q } GROUP BY ?q } . FILTER ( ?p = 1 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q20
P37
Q5962346
USER
What is considered to be the official language of Norway ?
(Q20,P37,c(Q5962346))
action filter_type
action find
entity Q20
relation P37
type Q5962346
['Q20', 'P37', {'concept': 'Q5962346'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q5962346 . resource:Q20 property:P37 ?z }
Norway
action filter_type
action find
entity Norway
relation official language
type classification scheme
['Norway', 'official language', {'concept': 'classification scheme'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:classification_scheme . resource:Norway property:official_language ?z }
[]
classification scheme
Q56463
SYSTEM
Sami languages
Q56463
(Q20,P37,c(Q5962346))
action filter_type
action find
entity Q20
relation P37
type Q5962346
And [ANSWER] is considered to be the official language of Norway
['Q20', 'P37', {'concept': 'Q5962346'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q5962346 . resource:Q20 property:P37 ?z }
Sami languages
And Sami languages is considered to be the official language of Norway
Sami languages
action filter_type
action find
entity Norway
relation official language
type classification scheme
['Norway', 'official language', {'concept': 'classification scheme'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:classification_scheme . resource:Norway property:official_language ?z }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q20
P6
Q502895
USER
Which person does Norway serve as the head of government for ?
(Q20,P6,c(Q502895))
action filter_type
action find
entity Q20
relation P6
type Q502895
['Q20', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?m WHERE { resource:Q20 property:P6 ?m . ?m rdf:type ontology:Q502895 }
Norway
action filter_type
action find
entity Norway
relation head of government
type common name
['Norway', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?m WHERE { resource:Norway property:head_of_government ?m . ?m rdf:type ontology:common_name }
[]
common name
Q291644
SYSTEM
Erna Solberg
Q291644
(Q20,P6,c(Q502895))
action filter_type
action find
entity Q20
relation P6
type Q502895
Norway serves as the head of government [ANSWER]
['Q20', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?m WHERE { resource:Q20 property:P6 ?m . ?m rdf:type ontology:Q502895 }
Erna Solberg
Norway serves as the head of government Erna Solberg
Erna Solberg
action filter_type
action find
entity Norway
relation head of government
type common name
['Norway', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?m WHERE { resource:Norway property:head_of_government ?m . ?m rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q20
P530
Q1048835
USER
Which political territories have diplomatic relations with Norway ?
(Q20,P530,c(Q1048835))
action filter_type
action find
entity Q20
relation P530
type Q1048835
['Q20', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?v WHERE { resource:Q20 property:P530 ?v . ?v rdf:type ontology:Q1048835 }
Norway
action filter_type
action find
entity Norway
relation diplomatic relation
type political territorial entity
['Norway', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Norway property:diplomatic_relation ?v . ?v rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q16 Q408 Q183
SYSTEM
Canada, Australia, Germany
Q16 Q408 Q183
(Q20,P530,c(Q1048835))
action filter_type
action find
entity Q20
relation P530
type Q1048835
[ANSWERS] have diplomatic relations with Norway
['Q20', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?v WHERE { resource:Q20 property:P530 ?v . ?v rdf:type ontology:Q1048835 }
Canada Australia Germany
Canada, Australia and Germany have diplomatic relations with Norway
Canada Australia Germany
action filter_type
action find
entity Norway
relation diplomatic relation
type political territorial entity
['Norway', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Norway property:diplomatic_relation ?v . ?v rdf:type ontology:political_territorial_entity }
[]