Simple Question (Direct)
Simple Question
Q2535649
P39
Q12737077
USER
What were the positions for which Vytautas Kvietkauskas were appointed ?
(Q2535649,P39,c(Q12737077))
action filter_type
action find
entity Q2535649
relation P39
type Q12737077
['Q2535649', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?d WHERE { resource:Q2535649 property:P39 ?d . ?d rdf:type ontology:Q12737077 }
Vytautas Kvietkauskas
action filter_type
action find
entity Vytautas Kvietkauskas
relation position held
type occupation
['Vytautas Kvietkauskas', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?d WHERE { resource:Vytautas_Kvietkauskas property:position_held ?d . ?d rdf:type ontology:occupation }
[]
occupation
Q27169 Q18507240
SYSTEM
member of the European Parliament, Member of the Seimas
Q27169 Q18507240
(Q2535649,P39,c(Q12737077))
action filter_type
action find
entity Q2535649
relation P39
type Q12737077
And [ANSWERS]
['Q2535649', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?d WHERE { resource:Q2535649 property:P39 ?d . ?d rdf:type ontology:Q12737077 }
member of the European Parliament Member of the Seimas
And member of the European Parliament and Member of the Seimas
member of the European Parliament Member of the Seimas
action filter_type
action find
entity Vytautas Kvietkauskas
relation position held
type occupation
['Vytautas Kvietkauskas', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?d WHERE { resource:Vytautas_Kvietkauskas property:position_held ?d . ?d rdf:type ontology:occupation }
[]
Clarification
Simple Question|Single Entity|Indirect
Q18507240
P17
Q15617994
USER
Which administrative territory does that occupation belong to ?
(Q18507240,P17,c(Q15617994))
action filter_type
action find
entity Q18507240
relation P17
type Q15617994
['Q18507240', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { resource:Q18507240 property:P17 ?a . ?a rdf:type ontology:Q15617994 }
Member of the Seimas
action filter_type
action find
entity Member of the Seimas
relation country
type designation for an administrative territorial entity
['Member of the Seimas', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Member_of_the_Seimas property:country ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Clarification for simple ques.
Q27169
SYSTEM
Did you mean member of the European Parliament ?
Q27169 Q18507240
(Q27169,P17,c(Q15617994)) (Q18507240,P17,c(Q15617994))
[ANSWER]
['Q27169', 'P17', {'concept': 'Q15617994'}] ['Q18507240', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { resource:Q18507240 property:P17 ?a . ?a rdf:type ontology:Q15617994 }
member of the European Parliament Member of the Seimas
Did you mean member of the European Parliament ?
member of the European Parliament
['member of the European Parliament', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Member of the Seimas', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Member_of_the_Seimas property:country ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
USER
No, I meant Member of the Seimas. Could you tell me the answer for that?
(Q18507240,P17,c(Q15617994))
Q18507240
['Q18507240', 'P17', {'concept': 'Q15617994'}]
['Member of the Seimas', 'country', {'concept': 'designation for an administrative territorial entity'}]
[]
Q37
SYSTEM
Lithuania
Q37
(Q18507240,P17,c(Q15617994))
action filter_type
action find
entity Q18507240
relation P17
type Q15617994
That occupation belongs to the [ANSWER]
['Q18507240', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { resource:Q18507240 property:P17 ?a . ?a rdf:type ontology:Q15617994 }
Lithuania
That occupation belongs to the Lithuania
Lithuania
action filter_type
action find
entity Member of the Seimas
relation country
type designation for an administrative territorial entity
['Member of the Seimas', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Member_of_the_Seimas property:country ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P1001
Q1292279 Q12737077
USER
How many political borders and occupations apply to jurisdiction over that administrative territory ?
(c(Q1292279),P1001,Q37) (c(Q12737077),P1001,Q37) (c(Q1292279),P1001,Q37) (c(Q12737077),P1001,Q37)
action count
action union
action filter_type
action find_reverse
entity Q37
relation P1001
type Q1292279
action filter_type
action find_reverse
entity Q37
relation P1001
type Q12737077
[{'concept': 'Q1292279'}, 'P1001', 'Q37'] [{'concept': 'Q12737077'}, 'P1001', 'Q37'] [{'concept': 'Q1292279'}, 'P1001', 'Q37'] [{'concept': 'Q12737077'}, 'P1001', 'Q37']
SELECT DISTINCT ( COUNT ( ?g ) AS ?s ) WHERE { ?g rdf:type ?k . VALUES ( ?k ) { ( ontology:Q1292279 ) ( ontology:Q12737077 ) } }
action count
action union
action filter_type
action find_reverse
entity Lithuania
relation applies to jurisdiction
type political border
action filter_type
action find_reverse
entity Lithuania
relation applies to jurisdiction
type occupation
[{'concept': 'political border'}, 'applies to jurisdiction', 'Lithuania'] [{'concept': 'occupation'}, 'applies to jurisdiction', 'Lithuania'] [{'concept': 'political border'}, 'applies to jurisdiction', 'Lithuania'] [{'concept': 'occupation'}, 'applies to jurisdiction', 'Lithuania']
SELECT DISTINCT ( COUNT ( ?g ) AS ?s ) WHERE { ?g rdf:type ?k . VALUES ( ?k ) { ( ontology:political_border ) ( ontology:occupation ) } }
[]
political border occupation
SYSTEM
5 political borders and 3 occupations
Q878222 Q16025257 Q2634555 Q845439 Q18507240 Q2453834 Q2623774 Q2453561
(c(Q1292279),P1001,Q37) (c(Q12737077),P1001,Q37) (c(Q1292279),P1001,Q37) (c(Q12737077),P1001,Q37)
action count
action union
action filter_type
action find_reverse
entity Q37
relation P1001
type Q1292279
action filter_type
action find_reverse
entity Q37
relation P1001
type Q12737077
[ANSWER]
[{'concept': 'Q1292279'}, 'P1001', 'Q37'] [{'concept': 'Q12737077'}, 'P1001', 'Q37'] [{'concept': 'Q1292279'}, 'P1001', 'Q37'] [{'concept': 'Q12737077'}, 'P1001', 'Q37']
SELECT DISTINCT ( COUNT ( ?g ) AS ?s ) WHERE { ?g rdf:type ?k . VALUES ( ?k ) { ( ontology:Q1292279 ) ( ontology:Q12737077 ) } }
President of the Republic of Lithuania Lithuania–Sweden border Latvia–Lithuania border Prime Minister of Lithuania Member of the Seimas Lithuania–Poland border Belarus–Lithuania border Lithuania–Russia border
5 political borders and 3 occupations
action count
action union
action filter_type
action find_reverse
entity Lithuania
relation applies to jurisdiction
type political border
action filter_type
action find_reverse
entity Lithuania
relation applies to jurisdiction
type occupation
[{'concept': 'political border'}, 'applies to jurisdiction', 'Lithuania'] [{'concept': 'occupation'}, 'applies to jurisdiction', 'Lithuania'] [{'concept': 'political border'}, 'applies to jurisdiction', 'Lithuania'] [{'concept': 'occupation'}, 'applies to jurisdiction', 'Lithuania']
SELECT DISTINCT ( COUNT ( ?g ) AS ?s ) WHERE { ?g rdf:type ?k . VALUES ( ?k ) { ( ontology:political_border ) ( ontology:occupation ) } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q17350017 Q2535649
P19 P937
Q56061
USER
Which administrative territories are the work locations of Vytautas Kvietkauskas or are the birthplace of Masako Sugawara ?
OR((Q2535649,P937,c(Q56061)), (Q17350017,P19,c(Q56061)))
action filter_type
action union
action find
entity Q2535649
relation P937
action find
entity Q17350017
relation P19
type Q56061
{'OR': [['Q2535649', 'P937', {'concept': 'Q56061'}], ['Q17350017', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Q2535649 property:P937 ?q } UNION { resource:Q17350017 property:P19 ?q } } . ?q rdf:type ontology:Q56061 }
Masako Sugawara Vytautas Kvietkauskas
action filter_type
action union
action find
entity Vytautas Kvietkauskas
relation work location
action find
entity Masako Sugawara
relation place of birth
type administrative territorial entity
{'OR': [['Vytautas Kvietkauskas', 'work location', {'concept': 'administrative territorial entity'}], ['Masako Sugawara', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Vytautas_Kvietkauskas property:work_location ?q } UNION { resource:Masako_Sugawara property:place_of_birth ?q } } . ?q rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1490 Q239
SYSTEM
Tokyo, Brussels
Q1490 Q239
OR((Q2535649,P937,c(Q56061)), (Q17350017,P19,c(Q56061)))
action filter_type
action union
action find
entity Q2535649
relation P937
action find
entity Q17350017
relation P19
type Q56061
[ANSWERS] are the work locations of Vytautas Kvietkauskas or are the birthplace of Masako Sugawara
{'OR': [['Q2535649', 'P937', {'concept': 'Q56061'}], ['Q17350017', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Q2535649 property:P937 ?q } UNION { resource:Q17350017 property:P19 ?q } } . ?q rdf:type ontology:Q56061 }
Tokyo Brussels
Tokyo and Brussels are the work locations of Vytautas Kvietkauskas or are the birthplace of Masako Sugawara
Tokyo Brussels
action filter_type
action union
action find
entity Vytautas Kvietkauskas
relation work location
action find
entity Masako Sugawara
relation place of birth
type administrative territorial entity
{'OR': [['Vytautas Kvietkauskas', 'work location', {'concept': 'administrative territorial entity'}], ['Masako Sugawara', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Vytautas_Kvietkauskas property:work_location ?q } UNION { resource:Masako_Sugawara property:place_of_birth ?q } } . ?q rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q3442508 Q2535649
P19
Q56061
USER
Which administrative territories were Vytautas Kvietkauskas or Rosemary Leach born ?
OR((Q2535649,P19,c(Q56061)), (Q3442508,P19,c(Q56061)))
action filter_type
action union
action find
entity Q2535649
relation P19
action find
entity Q3442508
relation P19
type Q56061
{'OR': [['Q2535649', 'P19', {'concept': 'Q56061'}], ['Q3442508', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Q2535649 property:P19 ?u } UNION { resource:Q3442508 property:P19 ?u } } . ?u rdf:type ontology:Q56061 }
Rosemary Leach Vytautas Kvietkauskas
action filter_type
action union
action find
entity Vytautas Kvietkauskas
relation place of birth
action find
entity Rosemary Leach
relation place of birth
type administrative territorial entity
{'OR': [['Vytautas Kvietkauskas', 'place of birth', {'concept': 'administrative territorial entity'}], ['Rosemary Leach', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Vytautas_Kvietkauskas property:place_of_birth ?u } UNION { resource:Rosemary_Leach property:place_of_birth ?u } } . ?u rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q4115712 Q201114
SYSTEM
Kaunas, Much Wenlock
Q4115712 Q201114
OR((Q2535649,P19,c(Q56061)), (Q3442508,P19,c(Q56061)))
action filter_type
action union
action find
entity Q2535649
relation P19
action find
entity Q3442508
relation P19
type Q56061
[ANSWERS] were Vytautas Kvietkauskas or Rosemary Leach born
{'OR': [['Q2535649', 'P19', {'concept': 'Q56061'}], ['Q3442508', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Q2535649 property:P19 ?u } UNION { resource:Q3442508 property:P19 ?u } } . ?u rdf:type ontology:Q56061 }
Kaunas Much Wenlock
Kaunas and Much Wenlock were Vytautas Kvietkauskas or Rosemary Leach born
Kaunas Much Wenlock
action filter_type
action union
action find
entity Vytautas Kvietkauskas
relation place of birth
action find
entity Rosemary Leach
relation place of birth
type administrative territorial entity
{'OR': [['Vytautas Kvietkauskas', 'place of birth', {'concept': 'administrative territorial entity'}], ['Rosemary Leach', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Vytautas_Kvietkauskas property:place_of_birth ?u } UNION { resource:Rosemary_Leach property:place_of_birth ?u } } . ?u rdf:type ontology:administrative_territorial_entity }
[]
Clarification
Simple Question|Single Entity|Indirect
Q201114
P915
Q15416
USER
Which television program had that administrative territory as its location of filming ?
(c(Q15416),P915,Q201114)
action filter_type
action find_reverse
entity Q201114
relation P915
type Q15416
[{'concept': 'Q15416'}, 'P915', 'Q201114']
SELECT DISTINCT ?q WHERE { ?q property:P915 resource:Q201114 . ?q rdf:type ontology:Q15416 }
Much Wenlock
action filter_type
action find_reverse
entity Much Wenlock
relation filming location
type television program
[{'concept': 'television program'}, 'filming location', 'Much Wenlock']
SELECT DISTINCT ?q WHERE { ?q property:filming_location resource:Much_Wenlock . ?q rdf:type ontology:television_program }
[]
television program
Clarification for simple ques.
Q201114
SYSTEM
Did you mean Much Wenlock ?
Q4115712 Q201114
(c(Q15416),P915,Q4115712) (c(Q15416),P915,Q201114)
[ANSWER]
[{'concept': 'Q15416'}, 'P915', 'Q4115712'] [{'concept': 'Q15416'}, 'P915', 'Q201114']
SELECT DISTINCT ?q WHERE { ?q property:P915 resource:Q201114 . ?q rdf:type ontology:Q15416 }
Kaunas Much Wenlock
Did you mean Much Wenlock ?
Much Wenlock
[{'concept': 'television program'}, 'filming location', 'Kaunas'] [{'concept': 'television program'}, 'filming location', 'Much Wenlock']
SELECT DISTINCT ?q WHERE { ?q property:filming_location resource:Much_Wenlock . ?q rdf:type ontology:television_program }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q15416),P915,Q201114)
[{'concept': 'Q15416'}, 'P915', 'Q201114']
[{'concept': 'television program'}, 'filming location', 'Much Wenlock']
[]
Q7805126
SYSTEM
Time Team (series 1)
Q7805126
(c(Q15416),P915,Q201114)
action filter_type
action find_reverse
entity Q201114
relation P915
type Q15416
[ANSWER] had that administrative territory as its location of filming
[{'concept': 'Q15416'}, 'P915', 'Q201114']
SELECT DISTINCT ?q WHERE { ?q property:P915 resource:Q201114 . ?q rdf:type ontology:Q15416 }
Time Team (series 1)
Time Team (series 1) had that administrative territory as its location of filming
Time Team (series 1)
action filter_type
action find_reverse
entity Much Wenlock
relation filming location
type television program
[{'concept': 'television program'}, 'filming location', 'Much Wenlock']
SELECT DISTINCT ?q WHERE { ?q property:filming_location resource:Much_Wenlock . ?q rdf:type ontology:television_program }
[]