Simple Question (Direct)
Simple Question
Q6091847
P27
Q15617994
USER
Which administrative territory does Jan Sandberg belong to ?
(Q6091847,P27,c(Q15617994))
action filter_type
action find
entity Q6091847
relation P27
type Q15617994
['Q6091847', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { resource:Q6091847 property:P27 ?y . ?y rdf:type ontology:Q15617994 }
Jan Sandberg
action filter_type
action find
entity Jan Sandberg
relation country of citizenship
type designation for an administrative territorial entity
['Jan Sandberg', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:Jan_Sandberg property:country_of_citizenship ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q34
SYSTEM
Sweden
Q34
(Q6091847,P27,c(Q15617994))
action filter_type
action find
entity Q6091847
relation P27
type Q15617994
Jan Sandberg belongs to [ANSWER]
['Q6091847', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { resource:Q6091847 property:P27 ?y . ?y rdf:type ontology:Q15617994 }
Sweden
Jan Sandberg belongs to Sweden
Sweden
action filter_type
action find
entity Jan Sandberg
relation country of citizenship
type designation for an administrative territorial entity
['Jan Sandberg', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:Jan_Sandberg property:country_of_citizenship ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q6091847
P39
Q12737077
USER
Which occupation was a position occupied by Jan Sandberg ?
(Q6091847,P39,c(Q12737077))
action filter_type
action find
entity Q6091847
relation P39
type Q12737077
['Q6091847', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?l WHERE { resource:Q6091847 property:P39 ?l . ?l rdf:type ontology:Q12737077 }
Jan Sandberg
action filter_type
action find
entity Jan Sandberg
relation position held
type occupation
['Jan Sandberg', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?l WHERE { resource:Jan_Sandberg property:position_held ?l . ?l rdf:type ontology:occupation }
[]
occupation
Q10655178
SYSTEM
Member of the Riksdag
Q10655178
(Q6091847,P39,c(Q12737077))
action filter_type
action find
entity Q6091847
relation P39
type Q12737077
[ANSWER] was a position occupied by Jan Sandberg
['Q6091847', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?l WHERE { resource:Q6091847 property:P39 ?l . ?l rdf:type ontology:Q12737077 }
Member of the Riksdag
Member of the Riksdag was a position occupied by Jan Sandberg
Member of the Riksdag
action filter_type
action find
entity Jan Sandberg
relation position held
type occupation
['Jan Sandberg', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?l WHERE { resource:Jan_Sandberg property:position_held ?l . ?l rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6091847
P102
Q7210356
USER
Which party does that person belong to ?
(Q10655178,P102,c(Q7210356))
action filter_type
action find
entity Q6091847
relation P102
type Q7210356
['Q10655178', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?u WHERE { resource:Q6091847 property:P102 ?u . ?u rdf:type ontology:Q7210356 }
Jan Sandberg
action filter_type
action find
entity Jan Sandberg
relation member of political party
type political organization
['Member of the Riksdag', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?u WHERE { resource:Jan_Sandberg property:member_of_political_party ?u . ?u rdf:type ontology:political_organization }
[]
political organization
Q110843
SYSTEM
Moderate Party
Q110843
(Q10655178,P102,c(Q7210356))
action filter_type
action find
entity Q6091847
relation P102
type Q7210356
That person belongs to [ANSWER]
['Q10655178', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?u WHERE { resource:Q6091847 property:P102 ?u . ?u rdf:type ontology:Q7210356 }
Moderate Party
That person belongs to Moderate Party
Moderate Party
action filter_type
action find
entity Jan Sandberg
relation member of political party
type political organization
['Member of the Riksdag', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?u WHERE { resource:Jan_Sandberg property:member_of_political_party ?u . ?u rdf:type ontology:political_organization }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q110843 Q5565071 Q6229175
P488
Q502895
USER
Is Gitau wa Njenga and Erik Roland Wahrenberg a chairperson of Q110843 ?
(Q110843,P488,Q5565071) (Q110843,P488,Q6229175)
action is_in
entity Q110843
action intersection
action find_reverse
entity Q5565071
relation P488
action find_reverse
entity Q6229175
relation P488
['Q110843', 'P488', 'Q5565071'] ['Q110843', 'P488', 'Q6229175']
ASK WHERE { resource:Q110843 property:P488 resource:Q5565071 . resource:Q110843 property:P488 resource:Q6229175 }
Moderate Party Gitau wa Njenga Erik Roland Wahrenberg
action is_in
entity Moderate Party
action intersection
action find_reverse
entity Gitau wa Njenga
relation chairperson
action find_reverse
entity Erik Roland Wahrenberg
relation chairperson
['Moderate Party', 'chairperson', 'Gitau wa Njenga'] ['Moderate Party', 'chairperson', 'Erik Roland Wahrenberg']
ASK WHERE { resource:Moderate_Party property:chairperson resource:Gitau_wa_Njenga . resource:Moderate_Party property:chairperson resource:Erik_Roland_Wahrenberg }
[]
common name
SYSTEM
NO
(Q110843,P488,Q5565071) (Q110843,P488,Q6229175)
action is_in
entity Q110843
action intersection
action find_reverse
entity Q5565071
relation P488
action find_reverse
entity Q6229175
relation P488
[ANSWER]
['Q110843', 'P488', 'Q5565071'] ['Q110843', 'P488', 'Q6229175']
ASK WHERE { resource:Q110843 property:P488 resource:Q5565071 . resource:Q110843 property:P488 resource:Q6229175 }
No
action is_in
entity Moderate Party
action intersection
action find_reverse
entity Gitau wa Njenga
relation chairperson
action find_reverse
entity Erik Roland Wahrenberg
relation chairperson
['Moderate Party', 'chairperson', 'Gitau wa Njenga'] ['Moderate Party', 'chairperson', 'Erik Roland Wahrenberg']
ASK WHERE { resource:Moderate_Party property:chairperson resource:Gitau_wa_Njenga . resource:Moderate_Party property:chairperson resource:Erik_Roland_Wahrenberg }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P110
Q502895 Q234460 Q2342494
USER
How many people illustrated around 27 texts or collectables ?
(c(Q234460)|c(Q2342494),P110,c(Q502895))
action count
action approx
action union
action find_reverse_tuple_counts
relation P110
type Q502895
type Q234460
action find_reverse_tuple_counts
relation P110
type Q502895
type Q2342494
value 27
[[{'concept': 'Q234460'}, {'concept': 'Q2342494'}], 'P110', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?s ) WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?y ) ?r WHERE { ?q rdf:type ?m . VALUES ( ?m ) { ( ontology:Q2342494 ) ( ontology:Q234460 ) } } GROUP BY ?r } . FILTER ( ?y = 27 ) }
action count
action approx
action union
action find_reverse_tuple_counts
relation illustrator
type common name
type text
action find_reverse_tuple_counts
relation illustrator
type common name
type collectable
value 27
[[{'concept': 'text'}, {'concept': 'collectable'}], 'illustrator', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?s ) WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?y ) ?r WHERE { ?q rdf:type ?m . VALUES ( ?m ) { ( ontology:collectable ) ( ontology:text ) } } GROUP BY ?r } . FILTER ( ?y = 27 ) }
[]
common name text collectable
SYSTEM
2
Q7027914 Q966547
(c(Q234460)|c(Q2342494),P110,c(Q502895))
action count
action approx
action union
action find_reverse_tuple_counts
relation P110
type Q502895
type Q234460
action find_reverse_tuple_counts
relation P110
type Q502895
type Q2342494
value 27
[ANSWER]
[[{'concept': 'Q234460'}, {'concept': 'Q2342494'}], 'P110', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?s ) WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?y ) ?r WHERE { ?q rdf:type ?m . VALUES ( ?m ) { ( ontology:Q2342494 ) ( ontology:Q234460 ) } } GROUP BY ?r } . FILTER ( ?y = 27 ) }
Nick Sharratt Léon Benett
2
action count
action approx
action union
action find_reverse_tuple_counts
relation illustrator
type common name
type text
action find_reverse_tuple_counts
relation illustrator
type common name
type collectable
value 27
[[{'concept': 'text'}, {'concept': 'collectable'}], 'illustrator', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?s ) WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?y ) ?r WHERE { ?q rdf:type ?m . VALUES ( ?m ) { ( ontology:collectable ) ( ontology:text ) } } GROUP BY ?r } . FILTER ( ?y = 27 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q6091847
P937
Q56061
USER
Where did Jan Sandberg work ?
(Q6091847,P937,c(Q56061))
action filter_type
action find
entity Q6091847
relation P937
type Q56061
['Q6091847', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?v WHERE { resource:Q6091847 property:P937 ?v . ?v rdf:type ontology:Q56061 }
Jan Sandberg
action filter_type
action find
entity Jan Sandberg
relation work location
type administrative territorial entity
['Jan Sandberg', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Jan_Sandberg property:work_location ?v . ?v rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1754
SYSTEM
Stockholm
Q1754
(Q6091847,P937,c(Q56061))
action filter_type
action find
entity Q6091847
relation P937
type Q56061
Jan Sandberg worked i [ANSWER]
['Q6091847', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?v WHERE { resource:Q6091847 property:P937 ?v . ?v rdf:type ontology:Q56061 }
Stockholm
Jan Sandberg worked i Stockholm
Stockholm
action filter_type
action find
entity Jan Sandberg
relation work location
type administrative territorial entity
['Jan Sandberg', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Jan_Sandberg property:work_location ?v . ?v rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q216 Q6091847
P190 P937
Q56061
USER
Which administrative territories are the work locations of Jan Sandberg and are the sister cities of Vilnius ?
AND((Q6091847,P937,c(Q56061)), (Q216,P190,c(Q56061)))
action filter_type
action intersection
action find
entity Q6091847
relation P937
action find
entity Q216
relation P190
type Q56061
{'AND': [['Q6091847', 'P937', {'concept': 'Q56061'}], ['Q216', 'P190', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?q WHERE { resource:Q6091847 property:P937 ?q . resource:Q216 property:P190 ?q . ?q rdf:type ontology:Q56061 }
Vilnius Jan Sandberg
action filter_type
action intersection
action find
entity Jan Sandberg
relation work location
action find
entity Vilnius
relation sister city
type administrative territorial entity
{'AND': [['Jan Sandberg', 'work location', {'concept': 'administrative territorial entity'}], ['Vilnius', 'sister city', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?q WHERE { resource:Jan_Sandberg property:work_location ?q . resource:Vilnius property:sister_city ?q . ?q rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1754
SYSTEM
Stockholm
Q1754
AND((Q6091847,P937,c(Q56061)), (Q216,P190,c(Q56061)))
action filter_type
action intersection
action find
entity Q6091847
relation P937
action find
entity Q216
relation P190
type Q56061
[ANSWER] is the work locations of Jan Sandberg and is the sister cities of Vilnius
{'AND': [['Q6091847', 'P937', {'concept': 'Q56061'}], ['Q216', 'P190', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?q WHERE { resource:Q6091847 property:P937 ?q . resource:Q216 property:P190 ?q . ?q rdf:type ontology:Q56061 }
Stockholm
Stockholm is the work locations of Jan Sandberg and is the sister cities of Vilnius
Stockholm
action filter_type
action intersection
action find
entity Jan Sandberg
relation work location
action find
entity Vilnius
relation sister city
type administrative territorial entity
{'AND': [['Jan Sandberg', 'work location', {'concept': 'administrative territorial entity'}], ['Vilnius', 'sister city', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?q WHERE { resource:Jan_Sandberg property:work_location ?q . resource:Vilnius property:sister_city ?q . ?q rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q317923 Q6091847
P106
Q12737077
USER
Which occupations have Jan Sandberg and Andreu Nin i Pérez as his/her as a career ?
AND((Q6091847,P106,c(Q12737077)), (Q317923,P106,c(Q12737077)))
action filter_type
action intersection
action find
entity Q6091847
relation P106
action find
entity Q317923
relation P106
type Q12737077
{'AND': [['Q6091847', 'P106', {'concept': 'Q12737077'}], ['Q317923', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?h WHERE { resource:Q317923 property:P106 ?h . resource:Q6091847 property:P106 ?h . ?h rdf:type ontology:Q12737077 }
Andreu Nin i Pérez Jan Sandberg
action filter_type
action intersection
action find
entity Jan Sandberg
relation occupation
action find
entity Andreu Nin i Pérez
relation occupation
type occupation
{'AND': [['Jan Sandberg', 'occupation', {'concept': 'occupation'}], ['Andreu Nin i Pérez', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?h WHERE { resource:Andreu_Nin_i_Pérez property:occupation ?h . resource:Jan_Sandberg property:occupation ?h . ?h rdf:type ontology:occupation }
[]
occupation
Q82955
SYSTEM
politician
Q82955
AND((Q6091847,P106,c(Q12737077)), (Q317923,P106,c(Q12737077)))
action filter_type
action intersection
action find
entity Q6091847
relation P106
action find
entity Q317923
relation P106
type Q12737077
The [ANSWER] have Jan Sandberg and Andreu Nin i Pérez as his/her as a career
{'AND': [['Q6091847', 'P106', {'concept': 'Q12737077'}], ['Q317923', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?h WHERE { resource:Q317923 property:P106 ?h . resource:Q6091847 property:P106 ?h . ?h rdf:type ontology:Q12737077 }
politician
The politician have Jan Sandberg and Andreu Nin i Pérez as his/her as a career
politician
action filter_type
action intersection
action find
entity Jan Sandberg
relation occupation
action find
entity Andreu Nin i Pérez
relation occupation
type occupation
{'AND': [['Jan Sandberg', 'occupation', {'concept': 'occupation'}], ['Andreu Nin i Pérez', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?h WHERE { resource:Andreu_Nin_i_Pérez property:occupation ?h . resource:Jan_Sandberg property:occupation ?h . ?h rdf:type ontology:occupation }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q25998025 Q6229175
P27
Q15617994
USER
Which administrative territories are Erik Roland Wahrenberg or Silviu-Florentin Gărea an inhabitant of ?
OR((Q6229175,P27,c(Q15617994)), (Q25998025,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q6229175
relation P27
action find
entity Q25998025
relation P27
type Q15617994
{'OR': [['Q6229175', 'P27', {'concept': 'Q15617994'}], ['Q25998025', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q15617994 . { { resource:Q6229175 property:P27 ?v } UNION { resource:Q25998025 property:P27 ?v } } }
Silviu-Florentin Gărea Erik Roland Wahrenberg
action filter_type
action union
action find
entity Erik Roland Wahrenberg
relation country of citizenship
action find
entity Silviu-Florentin Gărea
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Erik Roland Wahrenberg', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Silviu-Florentin Gărea', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Erik_Roland_Wahrenberg property:country_of_citizenship ?v } UNION { resource:Silviu-Florentin_Gărea property:country_of_citizenship ?v } } }
[]
designation for an administrative territorial entity
Q218 Q34
SYSTEM
Romania, Sweden
Q218 Q34
OR((Q6229175,P27,c(Q15617994)), (Q25998025,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q6229175
relation P27
action find
entity Q25998025
relation P27
type Q15617994
[ANSWERS] are Erik Roland Wahrenberg or Silviu-Florentin Gărea an inhabitant of
{'OR': [['Q6229175', 'P27', {'concept': 'Q15617994'}], ['Q25998025', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q15617994 . { { resource:Q6229175 property:P27 ?v } UNION { resource:Q25998025 property:P27 ?v } } }
Romania Sweden
Romania and Sweden are Erik Roland Wahrenberg or Silviu-Florentin Gărea an inhabitant of
Romania Sweden
action filter_type
action union
action find
entity Erik Roland Wahrenberg
relation country of citizenship
action find
entity Silviu-Florentin Gărea
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Erik Roland Wahrenberg', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Silviu-Florentin Gărea', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Erik_Roland_Wahrenberg property:country_of_citizenship ?v } UNION { resource:Silviu-Florentin_Gărea property:country_of_citizenship ?v } } }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q1354530 Q6091847
P106
Q12737077
USER
Which occupations are the professions of Jan Sandberg and Erika Vogel ?
AND((Q6091847,P106,c(Q12737077)), (Q1354530,P106,c(Q12737077)))
action filter_type
action intersection
action find
entity Q6091847
relation P106
action find
entity Q1354530
relation P106
type Q12737077
{'AND': [['Q6091847', 'P106', {'concept': 'Q12737077'}], ['Q1354530', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?s WHERE { resource:Q1354530 property:P106 ?s . resource:Q6091847 property:P106 ?s . ?s rdf:type ontology:Q12737077 }
Erika Vogel Jan Sandberg
action filter_type
action intersection
action find
entity Jan Sandberg
relation occupation
action find
entity Erika Vogel
relation occupation
type occupation
{'AND': [['Jan Sandberg', 'occupation', {'concept': 'occupation'}], ['Erika Vogel', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?s WHERE { resource:Erika_Vogel property:occupation ?s . resource:Jan_Sandberg property:occupation ?s . ?s rdf:type ontology:occupation }
[]
occupation
Q82955
SYSTEM
politician
Q82955
AND((Q6091847,P106,c(Q12737077)), (Q1354530,P106,c(Q12737077)))
action filter_type
action intersection
action find
entity Q6091847
relation P106
action find
entity Q1354530
relation P106
type Q12737077
The professions of Jan Sandberg and Erika Vogel are a [ANSWER]
{'AND': [['Q6091847', 'P106', {'concept': 'Q12737077'}], ['Q1354530', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?s WHERE { resource:Q1354530 property:P106 ?s . resource:Q6091847 property:P106 ?s . ?s rdf:type ontology:Q12737077 }
politician
The professions of Jan Sandberg and Erika Vogel are a politician
politician
action filter_type
action intersection
action find
entity Jan Sandberg
relation occupation
action find
entity Erika Vogel
relation occupation
type occupation
{'AND': [['Jan Sandberg', 'occupation', {'concept': 'occupation'}], ['Erika Vogel', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?s WHERE { resource:Erika_Vogel property:occupation ?s . resource:Jan_Sandberg property:occupation ?s . ?s rdf:type ontology:occupation }
[]