Simple Question (Direct)
Simple Question
Q7532476
P937
Q56061
USER
Where did Sivert Todal work ?
(Q7532476,P937,c(Q56061))
action filter_type
action find
entity Q7532476
relation P937
type Q56061
['Q7532476', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?s WHERE { resource:Q7532476 property:P937 ?s . ?s rdf:type ontology:Q56061 }
Sivert Todal
action filter_type
action find
entity Sivert Todal
relation work location
type administrative territorial entity
['Sivert Todal', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Sivert_Todal property:work_location ?s . ?s rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q585
SYSTEM
Oslo
Q585
(Q7532476,P937,c(Q56061))
action filter_type
action find
entity Q7532476
relation P937
type Q56061
Sivert Todal worked i [ANSWER]
['Q7532476', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?s WHERE { resource:Q7532476 property:P937 ?s . ?s rdf:type ontology:Q56061 }
Oslo
Sivert Todal worked i Oslo
Oslo
action filter_type
action find
entity Sivert Todal
relation work location
type administrative territorial entity
['Sivert Todal', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Sivert_Todal property:work_location ?s . ?s rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7532476
P102
Q7210356
USER
Which party is Sivert Todal affiliated with ?
(Q7532476,P102,c(Q7210356))
action filter_type
action find
entity Q7532476
relation P102
type Q7210356
['Q7532476', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?q WHERE { resource:Q7532476 property:P102 ?q . ?q rdf:type ontology:Q7210356 }
Sivert Todal
action filter_type
action find
entity Sivert Todal
relation member of political party
type political organization
['Sivert Todal', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?q WHERE { resource:Sivert_Todal property:member_of_political_party ?q . ?q rdf:type ontology:political_organization }
[]
political organization
Q500190
SYSTEM
Liberal Party
Q500190
(Q7532476,P102,c(Q7210356))
action filter_type
action find
entity Q7532476
relation P102
type Q7210356
Sivert Todal is affiliated with [ANSWER]
['Q7532476', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?q WHERE { resource:Q7532476 property:P102 ?q . ?q rdf:type ontology:Q7210356 }
Liberal Party
Sivert Todal is affiliated with Liberal Party
Liberal Party
action filter_type
action find
entity Sivert Todal
relation member of political party
type political organization
['Sivert Todal', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?q WHERE { resource:Sivert_Todal property:member_of_political_party ?q . ?q rdf:type ontology:political_organization }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7532476
P21
Q290
USER
Which sex does Sivert Todal possess ?
(Q7532476,P21,c(Q290))
action filter_type
action find
entity Q7532476
relation P21
type Q290
['Q7532476', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?c WHERE { resource:Q7532476 property:P21 ?c . ?c rdf:type ontology:Q290 }
Sivert Todal
action filter_type
action find
entity Sivert Todal
relation gender
type sex
['Sivert Todal', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?c WHERE { resource:Sivert_Todal property:gender ?c . ?c rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q7532476,P21,c(Q290))
action filter_type
action find
entity Q7532476
relation P21
type Q290
Sivert Todal possesses un [ANSWER]
['Q7532476', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?c WHERE { resource:Q7532476 property:P21 ?c . ?c rdf:type ontology:Q290 }
male
Sivert Todal possesses un male
male
action filter_type
action find
entity Sivert Todal
relation gender
type sex
['Sivert Todal', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?c WHERE { resource:Sivert_Todal property:gender ?c . ?c rdf:type ontology:sex }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q608078 Q585
P47
Q13220204
USER
Which administrative country subdivisions are bordered by Oslo or Przasnysz County ?
OR((Q585,P47,c(Q13220204)), (Q608078,P47,c(Q13220204)))
action filter_type
action union
action find
entity Q585
relation P47
action find
entity Q608078
relation P47
type Q13220204
{'OR': [['Q585', 'P47', {'concept': 'Q13220204'}], ['Q608078', 'P47', {'concept': 'Q13220204'}]]}
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q13220204 . { { resource:Q608078 property:P47 ?k } UNION { resource:Q585 property:P47 ?k } } }
Przasnysz County Oslo
action filter_type
action union
action find
entity Oslo
relation shares border with
action find
entity Przasnysz County
relation shares border with
type second-level administrative country subdivision
{'OR': [['Oslo', 'shares border with', {'concept': 'second-level administrative country subdivision'}], ['Przasnysz County', 'shares border with', {'concept': 'second-level administrative country subdivision'}]]}
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:second-level_administrative_country_subdivision . { { resource:Przasnysz_County property:shares_border_with ?k } UNION { resource:Oslo property:shares_border_with ?k } } }
[]
second-level administrative country subdivision
Q57912 Q110848 Q57081 Q57868 Q57871 Q556474 Q57864 Q488398 Q743873 Q57076
SYSTEM
Some of them are Ski, Ringerike, Enebakk, Oppegård, Skedsmo, Szczytno County, Nesodden, Lunner, Maków County, Bærum
Q57871 Q610857 Q488398 Q57868 Q57865 Q57864 Q1135395 Q57912 Q57076 Q57860 Q743873 Q924064 Q556474 Q947468 Q57081 Q110848
OR((Q585,P47,c(Q13220204)), (Q608078,P47,c(Q13220204)))
action filter_type
action union
action find
entity Q585
relation P47
action find
entity Q608078
relation P47
type Q13220204
[ANSWERS] are bordered by Oslo or Przasnysz County
{'OR': [['Q585', 'P47', {'concept': 'Q13220204'}], ['Q608078', 'P47', {'concept': 'Q13220204'}]]}
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q13220204 . { { resource:Q608078 property:P47 ?k } UNION { resource:Q585 property:P47 ?k } } }
Skedsmo Ostrołęka County Lunner Oppegård Nittedal Nesodden Nidzica County Ski Bærum Lørenskog Maków County Ciechanów County Szczytno County Mława County Enebakk Ringerike
Ski, Ringerike, Enebakk, Oppegård, Skedsmo, Szczytno County, Nesodden, Lunner, Maków County and Bærum are bordered by Oslo or Przasnysz County
Ski Ringerike Enebakk Oppegård Skedsmo Szczytno County Nesodden Lunner Maków County Bærum
action filter_type
action union
action find
entity Oslo
relation shares border with
action find
entity Przasnysz County
relation shares border with
type second-level administrative country subdivision
{'OR': [['Oslo', 'shares border with', {'concept': 'second-level administrative country subdivision'}], ['Przasnysz County', 'shares border with', {'concept': 'second-level administrative country subdivision'}]]}
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:second-level_administrative_country_subdivision . { { resource:Przasnysz_County property:shares_border_with ?k } UNION { resource:Oslo property:shares_border_with ?k } } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q57871 Q6874
P190
Q56061
USER
How many administrative territories are twin towns of Skedsmo or Rastatt ?
(Q57871,P190,c(Q56061)) (Q6874,P190,c(Q56061))
action count
action union
action filter_type
action find
entity Q57871
relation P190
type Q56061
action filter_type
action find
entity Q6874
relation P190
type Q56061
['Q57871', 'P190', {'concept': 'Q56061'}] ['Q6874', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?p ) WHERE { { resource:Q57871 property:P190 ?t . ?t rdf:type ontology:Q56061 } UNION { ?t rdf:type ontology:Q56061 . resource:Q6874 property:P190 ?t } }
Skedsmo Rastatt
action count
action union
action filter_type
action find
entity Skedsmo
relation sister city
type administrative territorial entity
action filter_type
action find
entity Rastatt
relation sister city
type administrative territorial entity
['Skedsmo', 'sister city', {'concept': 'administrative territorial entity'}] ['Rastatt', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?p ) WHERE { { resource:Skedsmo property:sister_city ?t . ?t rdf:type ontology:administrative_territorial_entity } UNION { ?t rdf:type ontology:administrative_territorial_entity . resource:Rastatt property:sister_city ?t } }
[]
administrative territorial entity
SYSTEM
3
Q10400 Q49172 Q646225
(Q57871,P190,c(Q56061)) (Q6874,P190,c(Q56061))
action count
action union
action filter_type
action find
entity Q57871
relation P190
type Q56061
action filter_type
action find
entity Q6874
relation P190
type Q56061
[ANSWER]
['Q57871', 'P190', {'concept': 'Q56061'}] ['Q6874', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?p ) WHERE { { resource:Q57871 property:P190 ?t . ?t rdf:type ontology:Q56061 } UNION { ?t rdf:type ontology:Q56061 . resource:Q6874 property:P190 ?t } }
Almería New Britain Woking
3
action count
action union
action filter_type
action find
entity Skedsmo
relation sister city
type administrative territorial entity
action filter_type
action find
entity Rastatt
relation sister city
type administrative territorial entity
['Skedsmo', 'sister city', {'concept': 'administrative territorial entity'}] ['Rastatt', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?p ) WHERE { { resource:Skedsmo property:sister_city ?t . ?t rdf:type ontology:administrative_territorial_entity } UNION { ?t rdf:type ontology:administrative_territorial_entity . resource:Rastatt property:sister_city ?t } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q12626 Q7532476
P47 P27
Q15617994
USER
Which administrative territories are the countries of citizenship of Sivert Todal or share the border with Meurthe-et-Moselle ?
OR((Q7532476,P27,c(Q15617994)), (Q12626,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q7532476
relation P27
action find
entity Q12626
relation P47
type Q15617994
{'OR': [['Q7532476', 'P27', {'concept': 'Q15617994'}], ['Q12626', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Q7532476 property:P27 ?b } UNION { resource:Q12626 property:P47 ?b } } . ?b rdf:type ontology:Q15617994 }
Meurthe-et-Moselle Sivert Todal
action filter_type
action union
action find
entity Sivert Todal
relation country of citizenship
action find
entity Meurthe-et-Moselle
relation shares border with
type designation for an administrative territorial entity
{'OR': [['Sivert Todal', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Meurthe-et-Moselle', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Sivert_Todal property:country_of_citizenship ?b } UNION { resource:Meurthe-et-Moselle property:shares_border_with ?b } } . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q20 Q12717 Q12652 Q12631 Q3105
SYSTEM
Norway, Bas-Rhin, Moselle, Meuse, Vosges
Q20 Q12717 Q12652 Q12631 Q3105
OR((Q7532476,P27,c(Q15617994)), (Q12626,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q7532476
relation P27
action find
entity Q12626
relation P47
type Q15617994
[ANSWERS] are the countries of citizenship of Sivert Todal or share the border with Meurthe-et-Moselle
{'OR': [['Q7532476', 'P27', {'concept': 'Q15617994'}], ['Q12626', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Q7532476 property:P27 ?b } UNION { resource:Q12626 property:P47 ?b } } . ?b rdf:type ontology:Q15617994 }
Norway Bas-Rhin Moselle Meuse Vosges
Norway, Bas-Rhin, Moselle, Meuse and Vosges are the countries of citizenship of Sivert Todal or share the border with Meurthe-et-Moselle
Norway Bas-Rhin Moselle Meuse Vosges
action filter_type
action union
action find
entity Sivert Todal
relation country of citizenship
action find
entity Meurthe-et-Moselle
relation shares border with
type designation for an administrative territorial entity
{'OR': [['Sivert Todal', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Meurthe-et-Moselle', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Sivert_Todal property:country_of_citizenship ?b } UNION { resource:Meurthe-et-Moselle property:shares_border_with ?b } } . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q1048835
USER
Which political territories have ambassadorial relations with atmost 77 administrative territories ?
(c(Q1048835),P530,c(Q15617994))
action atmost
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 77
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { FILTER ( ?g <= 77 ) . { SELECT DISTINCT ?s ( COUNT ( ?w ) AS ?g ) WHERE { ?s property:P530 ?w . ?w rdf:type ontology:Q15617994 . ?s rdf:type ontology:Q1048835 } GROUP BY ?s } }
action atmost
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 77
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { FILTER ( ?g <= 77 ) . { SELECT DISTINCT ?s ( COUNT ( ?w ) AS ?g ) WHERE { ?s property:diplomatic_relation ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . ?s rdf:type ontology:political_territorial_entity } GROUP BY ?s } }
[]
designation for an administrative territorial entity political territorial entity
Q35 Q16 Q40
SYSTEM
Denmark, Canada, Austria
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q16 Q664 Q766
(c(Q1048835),P530,c(Q15617994))
action atmost
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 77
[ANSWERS] have ambassadorial relations with atmost 77 administrative territories
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { FILTER ( ?g <= 77 ) . { SELECT DISTINCT ?s ( COUNT ( ?w ) AS ?g ) WHERE { ?s property:P530 ?w . ?w rdf:type ontology:Q15617994 . ?s rdf:type ontology:Q1048835 } GROUP BY ?s } }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
Denmark, Canada and Austria have ambassadorial relations with atmost 77 administrative territories
Denmark Canada Austria
action atmost
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 77
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { FILTER ( ?g <= 77 ) . { SELECT DISTINCT ?s ( COUNT ( ?w ) AS ?g ) WHERE { ?s property:diplomatic_relation ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . ?s rdf:type ontology:political_territorial_entity } GROUP BY ?s } }
[]