Simple Question (Direct)
Simple Question
Q6760692
P21
Q290
USER
What is the sex of Margot Peters ?
(Q6760692,P21,c(Q290))
action filter_type
action find
entity Q6760692
relation P21
type Q290
['Q6760692', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q290 . resource:Q6760692 property:P21 ?h }
Margot Peters
action filter_type
action find
entity Margot Peters
relation gender
type sex
['Margot Peters', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:sex . resource:Margot_Peters property:gender ?h }
[]
sex
Q6581072
SYSTEM
female
Q6581072
(Q6760692,P21,c(Q290))
action filter_type
action find
entity Q6760692
relation P21
type Q290
The sex of Margot Peters is the [ANSWER]
['Q6760692', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q290 . resource:Q6760692 property:P21 ?h }
female
The sex of Margot Peters is the female
female
action filter_type
action find
entity Margot Peters
relation gender
type sex
['Margot Peters', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:sex . resource:Margot_Peters property:gender ?h }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q6760692
P19
Q56061
USER
Which administrative territory is the birthplace of Margot Peters ?
(Q6760692,P19,c(Q56061))
action filter_type
action find
entity Q6760692
relation P19
type Q56061
['Q6760692', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?k WHERE { resource:Q6760692 property:P19 ?k . ?k rdf:type ontology:Q56061 }
Margot Peters
action filter_type
action find
entity Margot Peters
relation place of birth
type administrative territorial entity
['Margot Peters', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:Margot_Peters property:place_of_birth ?k . ?k rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q998675
SYSTEM
Wausau
Q998675
(Q6760692,P19,c(Q56061))
action filter_type
action find
entity Q6760692
relation P19
type Q56061
[ANSWER] is the birthplace of Margot Peters
['Q6760692', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?k WHERE { resource:Q6760692 property:P19 ?k . ?k rdf:type ontology:Q56061 }
Wausau
Wausau is the birthplace of Margot Peters
Wausau
action filter_type
action find
entity Margot Peters
relation place of birth
type administrative territorial entity
['Margot Peters', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:Margot_Peters property:place_of_birth ?k . ?k rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q6760692
P106
Q12737077
USER
Which occupations have Margot Peters as his/her 's career ?
(Q6760692,P106,c(Q12737077))
action filter_type
action find
entity Q6760692
relation P106
type Q12737077
['Q6760692', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?x WHERE { resource:Q6760692 property:P106 ?x . ?x rdf:type ontology:Q12737077 }
Margot Peters
action filter_type
action find
entity Margot Peters
relation occupation
type occupation
['Margot Peters', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?x WHERE { resource:Margot_Peters property:occupation ?x . ?x rdf:type ontology:occupation }
[]
occupation
Q36180 Q864380
SYSTEM
writer, biographer
Q36180 Q864380
(Q6760692,P106,c(Q12737077))
action filter_type
action find
entity Q6760692
relation P106
type Q12737077
Pro [ANSWERS] have Margot Peters as his/her 's career
['Q6760692', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?x WHERE { resource:Q6760692 property:P106 ?x . ?x rdf:type ontology:Q12737077 }
writer biographer
Pro writer and biographer have Margot Peters as his/her 's career
writer biographer
action filter_type
action find
entity Margot Peters
relation occupation
type occupation
['Margot Peters', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?x WHERE { resource:Margot_Peters property:occupation ?x . ?x rdf:type ontology:occupation }
[]
Clarification
Simple Question|Single Entity|Indirect
Q36180
P937
Q502895
USER
Which person have that occupation as their work location ?
(c(Q502895),P937,Q36180)
action filter_type
action find_reverse
entity Q36180
relation P937
type Q502895
[{'concept': 'Q502895'}, 'P937', 'Q36180']
SELECT DISTINCT ?w WHERE { ?w property:P937 resource:Q36180 . ?w rdf:type ontology:Q502895 }
writer
action filter_type
action find_reverse
entity writer
relation work location
type common name
[{'concept': 'common name'}, 'work location', 'writer']
SELECT DISTINCT ?w WHERE { ?w property:work_location resource:writer . ?w rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q36180
SYSTEM
Did you mean writer ?
Q36180 Q864380
(c(Q502895),P937,Q36180) (c(Q502895),P937,Q864380)
[ANSWER]
[{'concept': 'Q502895'}, 'P937', 'Q36180'] [{'concept': 'Q502895'}, 'P937', 'Q864380']
SELECT DISTINCT ?w WHERE { ?w property:P937 resource:Q36180 . ?w rdf:type ontology:Q502895 }
writer biographer
Did you mean writer ?
writer
[{'concept': 'common name'}, 'work location', 'writer'] [{'concept': 'common name'}, 'work location', 'biographer']
SELECT DISTINCT ?w WHERE { ?w property:work_location resource:writer . ?w rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q502895),P937,Q36180)
[{'concept': 'Q502895'}, 'P937', 'Q36180']
[{'concept': 'common name'}, 'work location', 'writer']
[]
Q3398852
SYSTEM
Lidija Dimkovska
Q3398852
(c(Q502895),P937,Q36180)
action filter_type
action find_reverse
entity Q36180
relation P937
type Q502895
[ANSWER] have that occupation as their work location
[{'concept': 'Q502895'}, 'P937', 'Q36180']
SELECT DISTINCT ?w WHERE { ?w property:P937 resource:Q36180 . ?w rdf:type ontology:Q502895 }
Lidija Dimkovska
Lidija Dimkovska have that occupation as their work location
Lidija Dimkovska
action filter_type
action find_reverse
entity writer
relation work location
type common name
[{'concept': 'common name'}, 'work location', 'writer']
SELECT DISTINCT ?w WHERE { ?w property:work_location resource:writer . ?w rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3398852
P937
Q12737077
USER
Which are the work locations of that person ?
(Q3398852,P937,c(Q12737077))
action filter_type
action find
entity Q3398852
relation P937
type Q12737077
['Q3398852', 'P937', {'concept': 'Q12737077'}]
SELECT DISTINCT ?a WHERE { resource:Q3398852 property:P937 ?a . ?a rdf:type ontology:Q12737077 }
Lidija Dimkovska
action filter_type
action find
entity Lidija Dimkovska
relation work location
type occupation
['Lidija Dimkovska', 'work location', {'concept': 'occupation'}]
SELECT DISTINCT ?a WHERE { resource:Lidija_Dimkovska property:work_location ?a . ?a rdf:type ontology:occupation }
[]
occupation
Q333634 Q36180 Q49757
SYSTEM
translator, writer, poet
Q333634 Q36180 Q49757
(Q3398852,P937,c(Q12737077))
action filter_type
action find
entity Q3398852
relation P937
type Q12737077
The work locations of that person are the [ANSWERS]
['Q3398852', 'P937', {'concept': 'Q12737077'}]
SELECT DISTINCT ?a WHERE { resource:Q3398852 property:P937 ?a . ?a rdf:type ontology:Q12737077 }
translator writer poet
The work locations of that person are the translator, writer and poet
translator writer poet
action filter_type
action find
entity Lidija Dimkovska
relation work location
type occupation
['Lidija Dimkovska', 'work location', {'concept': 'occupation'}]
SELECT DISTINCT ?a WHERE { resource:Lidija_Dimkovska property:work_location ?a . ?a rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q36180
P39
Q502895
USER
Which people were responsible for occupying the position of writer ?
(c(Q502895),P39,Q36180)
action filter_type
action find_reverse
entity Q36180
relation P39
type Q502895
[{'concept': 'Q502895'}, 'P39', 'Q36180']
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q502895 . ?t property:P39 resource:Q36180 }
writer
action filter_type
action find_reverse
entity writer
relation position held
type common name
[{'concept': 'common name'}, 'position held', 'writer']
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:common_name . ?t property:position_held resource:writer }
[]
common name
Q4255270 Q723621 Q5945149
SYSTEM
Mariano Roca de Togores, 1st Marquis of Molins, Paul Nizan, José Rocamora
Q20666477 Q163042 Q723621 Q11294693 Q4255270 Q5945149
(c(Q502895),P39,Q36180)
action filter_type
action find_reverse
entity Q36180
relation P39
type Q502895
[ANSWERS] were responsible for occupying the position of writer
[{'concept': 'Q502895'}, 'P39', 'Q36180']
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q502895 . ?t property:P39 resource:Q36180 }
Marina Damestoy David Duke Paul Nizan Henri de Saint-Ignace Mariano Roca de Togores, 1st Marquis of Molins José Rocamora
Mariano Roca de Togores, 1st Marquis of Molins, Paul Nizan and José Rocamora were responsible for occupying the position of writer
Mariano Roca de Togores, 1st Marquis of Molins Paul Nizan José Rocamora
action filter_type
action find_reverse
entity writer
relation position held
type common name
[{'concept': 'common name'}, 'position held', 'writer']
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:common_name . ?t property:position_held resource:writer }
[]
Clarification
Simple Question|Single Entity|Indirect
Q5945149
P1412
Q34770
USER
Which language is that person capable of writing ?
(Q5945149,P1412,c(Q34770))
action filter_type
action find
entity Q5945149
relation P1412
type Q34770
['Q5945149', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q34770 . resource:Q5945149 property:P1412 ?y }
José Rocamora
action filter_type
action find
entity José Rocamora
relation languages spoken, written or signed
type language
['José Rocamora', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:language . resource:José_Rocamora property:languages_spoken,_written_or_signed ?y }
[]
language
Clarification for simple ques.
Q723621
SYSTEM
Did you mean Paul Nizan ?
Q4255270 Q723621 Q5945149
(Q4255270,P1412,c(Q34770)) (Q723621,P1412,c(Q34770)) (Q5945149,P1412,c(Q34770))
[ANSWER]
['Q4255270', 'P1412', {'concept': 'Q34770'}] ['Q723621', 'P1412', {'concept': 'Q34770'}] ['Q5945149', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q34770 . resource:Q5945149 property:P1412 ?y }
Mariano Roca de Togores, 1st Marquis of Molins Paul Nizan José Rocamora
Did you mean Paul Nizan ?
Paul Nizan
['Mariano Roca de Togores, 1st Marquis of Molins', 'languages spoken, written or signed', {'concept': 'language'}] ['Paul Nizan', 'languages spoken, written or signed', {'concept': 'language'}] ['José Rocamora', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:language . resource:José_Rocamora property:languages_spoken,_written_or_signed ?y }
[]
Simple Question (Coreferenced)
USER
No, I meant José Rocamora. Could you tell me the answer for that?
(Q5945149,P1412,c(Q34770))
Q5945149
['Q5945149', 'P1412', {'concept': 'Q34770'}]
['José Rocamora', 'languages spoken, written or signed', {'concept': 'language'}]
[]
Q1321
SYSTEM
Spanish
Q1321
(Q5945149,P1412,c(Q34770))
action filter_type
action find
entity Q5945149
relation P1412
type Q34770
[ANSWER] is that person capable of writing
['Q5945149', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q34770 . resource:Q5945149 property:P1412 ?y }
Spanish
Spanish is that person capable of writing
Spanish
action filter_type
action find
entity José Rocamora
relation languages spoken, written or signed
type language
['José Rocamora', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:language . resource:José_Rocamora property:languages_spoken,_written_or_signed ?y }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q2158514 Q3398852
P19
Q56061
USER
Which administrative territories were Lidija Dimkovska or Robert Poseck born ?
OR((Q3398852,P19,c(Q56061)), (Q2158514,P19,c(Q56061)))
action filter_type
action union
action find
entity Q3398852
relation P19
action find
entity Q2158514
relation P19
type Q56061
{'OR': [['Q3398852', 'P19', {'concept': 'Q56061'}], ['Q2158514', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q56061 . { { resource:Q2158514 property:P19 ?v } UNION { resource:Q3398852 property:P19 ?v } } }
Robert Poseck Lidija Dimkovska
action filter_type
action union
action find
entity Lidija Dimkovska
relation place of birth
action find
entity Robert Poseck
relation place of birth
type administrative territorial entity
{'OR': [['Lidija Dimkovska', 'place of birth', {'concept': 'administrative territorial entity'}], ['Robert Poseck', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:administrative_territorial_entity . { { resource:Robert_Poseck property:place_of_birth ?v } UNION { resource:Lidija_Dimkovska property:place_of_birth ?v } } }
[]
administrative territorial entity
Q384 Q490665
SYSTEM
Skopje, Arnstadt
Q384 Q490665
OR((Q3398852,P19,c(Q56061)), (Q2158514,P19,c(Q56061)))
action filter_type
action union
action find
entity Q3398852
relation P19
action find
entity Q2158514
relation P19
type Q56061
[ANSWERS] were Lidija Dimkovska or Robert Poseck born
{'OR': [['Q3398852', 'P19', {'concept': 'Q56061'}], ['Q2158514', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q56061 . { { resource:Q2158514 property:P19 ?v } UNION { resource:Q3398852 property:P19 ?v } } }
Skopje Arnstadt
Skopje and Arnstadt were Lidija Dimkovska or Robert Poseck born
Skopje Arnstadt
action filter_type
action union
action find
entity Lidija Dimkovska
relation place of birth
action find
entity Robert Poseck
relation place of birth
type administrative territorial entity
{'OR': [['Lidija Dimkovska', 'place of birth', {'concept': 'administrative territorial entity'}], ['Robert Poseck', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:administrative_territorial_entity . { { resource:Robert_Poseck property:place_of_birth ?v } UNION { resource:Lidija_Dimkovska property:place_of_birth ?v } } }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q384 Q490665
P190
Q515
USER
Which cities are twin town of Skopje and Arnstadt ?
(c(Q515),P190,Q384) (c(Q515),P190,Q490665)
action union
action filter_type
action find
entity Q384
relation P190
type Q515
action filter_type
action find
entity Q490665
relation P190
type Q515
[{'concept': 'Q515'}, 'P190', 'Q384'] [{'concept': 'Q515'}, 'P190', 'Q490665']
SELECT DISTINCT ?d WHERE { ?v property:P190 ?d . VALUES ( ?v ) { ( resource:Q384 ) ( resource:Q490665 ) } }
Skopje Arnstadt
action union
action filter_type
action find
entity Skopje
relation sister city
type city
action filter_type
action find
entity Arnstadt
relation sister city
type city
[{'concept': 'city'}, 'sister city', 'Skopje'] [{'concept': 'city'}, 'sister city', 'Arnstadt']
SELECT DISTINCT ?d WHERE { ?v property:sister_city ?d . VALUES ( ?v ) { ( resource:Skopje ) ( resource:Arnstadt ) } }
[]
city
Q1731 Q11194 Q7003
SYSTEM
Dresden, Sarajevo, Dijon
Q7003 Q1731 Q11194 Q171943 Q2865 Q601254
(c(Q515),P190,Q384) (c(Q515),P190,Q490665)
action union
action filter_type
action find
entity Q384
relation P190
type Q515
action filter_type
action find
entity Q490665
relation P190
type Q515
[ANSWERS] are twin town of Skopje and Arnstadt
[{'concept': 'Q515'}, 'P190', 'Q384'] [{'concept': 'Q515'}, 'P190', 'Q490665']
SELECT DISTINCT ?d WHERE { ?v property:P190 ?d . VALUES ( ?v ) { ( resource:Q384 ) ( resource:Q490665 ) } }
Dijon Dresden Sarajevo Nanchang Kassel Dubí
Dresden, Sarajevo and Dijon are twin town of Skopje and Arnstadt
Dresden Sarajevo Dijon
action union
action filter_type
action find
entity Skopje
relation sister city
type city
action filter_type
action find
entity Arnstadt
relation sister city
type city
[{'concept': 'city'}, 'sister city', 'Skopje'] [{'concept': 'city'}, 'sister city', 'Arnstadt']
SELECT DISTINCT ?d WHERE { ?v property:sister_city ?d . VALUES ( ?v ) { ( resource:Skopje ) ( resource:Arnstadt ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1731
P36
Q1048835
USER
Which political territories have Dresden as their administrative centre ?
(c(Q1048835),P36,Q1731)
action filter_type
action find_reverse
entity Q1731
relation P36
type Q1048835
[{'concept': 'Q1048835'}, 'P36', 'Q1731']
SELECT DISTINCT ?f WHERE { ?f property:P36 resource:Q1731 . ?f rdf:type ontology:Q1048835 }
Dresden
action filter_type
action find_reverse
entity Dresden
relation capital
type political territorial entity
[{'concept': 'political territorial entity'}, 'capital', 'Dresden']
SELECT DISTINCT ?f WHERE { ?f property:capital resource:Dresden . ?f rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q24174 Q48050
SYSTEM
Dresden Government Region, Dresden District
Q24174 Q48050
(c(Q1048835),P36,Q1731)
action filter_type
action find_reverse
entity Q1731
relation P36
type Q1048835
[ANSWERS] have Dresden as their administrative centre
[{'concept': 'Q1048835'}, 'P36', 'Q1731']
SELECT DISTINCT ?f WHERE { ?f property:P36 resource:Q1731 . ?f rdf:type ontology:Q1048835 }
Dresden Government Region Dresden District
Dresden Government Region and Dresden District have Dresden as their administrative centre
Dresden Government Region Dresden District
action filter_type
action find_reverse
entity Dresden
relation capital
type political territorial entity
[{'concept': 'political territorial entity'}, 'capital', 'Dresden']
SELECT DISTINCT ?f WHERE { ?f property:capital resource:Dresden . ?f rdf:type ontology:political_territorial_entity }
[]