Simple Question (Direct)
Simple Question
Q234562
P2348
Q3024240
USER
Which former country was Galeria Valeria associated with ?
(Q234562,P2348,c(Q3024240))
action filter_type
action find
entity Q234562
relation P2348
type Q3024240
['Q234562', 'P2348', {'concept': 'Q3024240'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q3024240 . resource:Q234562 property:P2348 ?e }
Galeria Valeria
action filter_type
action find
entity Galeria Valeria
relation period
type former country
['Galeria Valeria', 'period', {'concept': 'former country'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:former_country . resource:Galeria_Valeria property:period ?e }
[]
former country
Q2277
SYSTEM
Roman Empire
Q2277
(Q234562,P2348,c(Q3024240))
action filter_type
action find
entity Q234562
relation P2348
type Q3024240
Galeria Valeria was associated with [ANSWER]
['Q234562', 'P2348', {'concept': 'Q3024240'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q3024240 . resource:Q234562 property:P2348 ?e }
Roman Empire
Galeria Valeria was associated with Roman Empire
Roman Empire
action filter_type
action find
entity Galeria Valeria
relation period
type former country
['Galeria Valeria', 'period', {'concept': 'former country'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:former_country . resource:Galeria_Valeria property:period ?e }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q234562
P39
Q4164871
USER
What was a position for which that person was appointed ?
(Q2277,P39,c(Q4164871))
action filter_type
action find
entity Q234562
relation P39
type Q4164871
['Q2277', 'P39', {'concept': 'Q4164871'}]
SELECT DISTINCT ?d WHERE { resource:Q234562 property:P39 ?d . ?d rdf:type ontology:Q4164871 }
Galeria Valeria
action filter_type
action find
entity Galeria Valeria
relation position held
type position
['Roman Empire', 'position held', {'concept': 'position'}]
SELECT DISTINCT ?d WHERE { resource:Galeria_Valeria property:position_held ?d . ?d rdf:type ontology:position }
[]
position
Q39018
SYSTEM
emperor
Q39018
(Q2277,P39,c(Q4164871))
action filter_type
action find
entity Q234562
relation P39
type Q4164871
[ANSWER]
['Q2277', 'P39', {'concept': 'Q4164871'}]
SELECT DISTINCT ?d WHERE { resource:Q234562 property:P39 ?d . ?d rdf:type ontology:Q4164871 }
emperor
Emperor
emperor
action filter_type
action find
entity Galeria Valeria
relation position held
type position
['Roman Empire', 'position held', {'concept': 'position'}]
SELECT DISTINCT ?d WHERE { resource:Galeria_Valeria property:position_held ?d . ?d rdf:type ontology:position }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581097 Q234562
P21 P40
Q502895
USER
Which people have Galeria Valeria as an offspring and are a male ?
AND((c(Q502895),P40,Q234562), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q234562
relation P40
action find_reverse
entity Q6581097
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P40', 'Q234562'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?i WHERE { ?i property:P40 resource:Q234562 . ?i property:P21 resource:Q6581097 . ?i rdf:type ontology:Q502895 }
male Galeria Valeria
action filter_type
action intersection
action find_reverse
entity Galeria Valeria
relation child
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'child', 'Galeria Valeria'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?i WHERE { ?i property:child resource:Galeria_Valeria . ?i property:gender resource:male . ?i rdf:type ontology:common_name }
[]
common name
Q43107
SYSTEM
Diocletian
Q43107
AND((c(Q502895),P40,Q234562), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q234562
relation P40
action find_reverse
entity Q6581097
relation P21
type Q502895
[ANSWER] have Galeria Valeria as an offspring and are a male
{'AND': [[{'concept': 'Q502895'}, 'P40', 'Q234562'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?i WHERE { ?i property:P40 resource:Q234562 . ?i property:P21 resource:Q6581097 . ?i rdf:type ontology:Q502895 }
Diocletian
Diocletian have Galeria Valeria as an offspring and are a male
Diocletian
action filter_type
action intersection
action find_reverse
entity Galeria Valeria
relation child
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'child', 'Galeria Valeria'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?i WHERE { ?i property:child resource:Galeria_Valeria . ?i property:gender resource:male . ?i rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q43107
P26
Q502895
USER
Which person has that one as spouse ?
(c(Q502895),P26,Q43107)
action filter_type
action find
entity Q43107
relation P26
type Q502895
[{'concept': 'Q502895'}, 'P26', 'Q43107']
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q502895 . resource:Q43107 property:P26 ?e }
Diocletian
action filter_type
action find
entity Diocletian
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Diocletian']
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:common_name . resource:Diocletian property:spouse ?e }
[]
common name
Q164210
SYSTEM
Prisca
Q164210
(c(Q502895),P26,Q43107)
action filter_type
action find
entity Q43107
relation P26
type Q502895
[ANSWER] has that one as spouse
[{'concept': 'Q502895'}, 'P26', 'Q43107']
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q502895 . resource:Q43107 property:P26 ?e }
Prisca
Prisca has that one as spouse
Prisca
action filter_type
action find
entity Diocletian
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Diocletian']
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:common_name . resource:Diocletian property:spouse ?e }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q164210
P25
Q502895
USER
Which person has that one as mother ?
(c(Q502895),P25,Q164210)
action filter_type
action find_reverse
entity Q164210
relation P25
type Q502895
[{'concept': 'Q502895'}, 'P25', 'Q164210']
SELECT DISTINCT ?m WHERE { ?m property:P25 resource:Q164210 . ?m rdf:type ontology:Q502895 }
Prisca
action filter_type
action find_reverse
entity Prisca
relation mother
type common name
[{'concept': 'common name'}, 'mother', 'Prisca']
SELECT DISTINCT ?m WHERE { ?m property:mother resource:Prisca . ?m rdf:type ontology:common_name }
[]
common name
Q234562
SYSTEM
Galeria Valeria
Q234562
(c(Q502895),P25,Q164210)
action filter_type
action find_reverse
entity Q164210
relation P25
type Q502895
[ANSWER] has that one as mother
[{'concept': 'Q502895'}, 'P25', 'Q164210']
SELECT DISTINCT ?m WHERE { ?m property:P25 resource:Q164210 . ?m rdf:type ontology:Q502895 }
Galeria Valeria
Galeria Valeria has that one as mother
Galeria Valeria
action filter_type
action find_reverse
entity Prisca
relation mother
type common name
[{'concept': 'common name'}, 'mother', 'Prisca']
SELECT DISTINCT ?m WHERE { ?m property:mother resource:Prisca . ?m rdf:type ontology:common_name }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
Which musical instruments do approximately 2831 people know to play ?
(c(Q502895),P1303,c(Q34379))
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 2831
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?n ) AS ?s ) WHERE { ?n property:P1303 ?x . ?x rdf:type ontology:Q34379 . ?n rdf:type ontology:Q502895 } GROUP BY ?x } . FILTER ( ?s = 2831 ) }
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 2831
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?n ) AS ?s ) WHERE { ?n property:instrument ?x . ?x rdf:type ontology:musical_instrument . ?n rdf:type ontology:common_name } GROUP BY ?x } . FILTER ( ?s = 2831 ) }
[]
musical instrument common name
Q8338 Q1444 Q128309
SYSTEM
trumpet, organ, drum kit
Q8338 Q1444 Q128309
(c(Q502895),P1303,c(Q34379))
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 2831
Approximately 2831 people know about [ANSWERS]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?n ) AS ?s ) WHERE { ?n property:P1303 ?x . ?x rdf:type ontology:Q34379 . ?n rdf:type ontology:Q502895 } GROUP BY ?x } . FILTER ( ?s = 2831 ) }
trumpet organ drum kit
Approximately 2831 people know about trumpet, organ and drum kit
trumpet organ drum kit
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 2831
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?n ) AS ?s ) WHERE { ?n property:instrument ?x . ?x rdf:type ontology:musical_instrument . ?n rdf:type ontology:common_name } GROUP BY ?x } . FILTER ( ?s = 2831 ) }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581097 Q234562
P21 P40
Q502895
USER
Which people have Galeria Valeria as a child and have the gender as male ?
AND((c(Q502895),P40,Q234562), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q234562
relation P40
action find_reverse
entity Q6581097
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P40', 'Q234562'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?g WHERE { ?g property:P40 resource:Q234562 . ?g property:P21 resource:Q6581097 . ?g rdf:type ontology:Q502895 }
male Galeria Valeria
action filter_type
action intersection
action find_reverse
entity Galeria Valeria
relation child
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'child', 'Galeria Valeria'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?g WHERE { ?g property:child resource:Galeria_Valeria . ?g property:gender resource:male . ?g rdf:type ontology:common_name }
[]
common name
Q43107
SYSTEM
Diocletian
Q43107
AND((c(Q502895),P40,Q234562), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q234562
relation P40
action find_reverse
entity Q6581097
relation P21
type Q502895
[ANSWER] have Galeria Valeria as a child and have the gender as male
{'AND': [[{'concept': 'Q502895'}, 'P40', 'Q234562'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?g WHERE { ?g property:P40 resource:Q234562 . ?g property:P21 resource:Q6581097 . ?g rdf:type ontology:Q502895 }
Diocletian
Diocletian have Galeria Valeria as a child and have the gender as male
Diocletian
action filter_type
action intersection
action find_reverse
entity Galeria Valeria
relation child
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'child', 'Galeria Valeria'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?g WHERE { ?g property:child resource:Galeria_Valeria . ?g property:gender resource:male . ?g rdf:type ontology:common_name }
[]