Simple Question (Direct)
Simple Question
Q1102255
P39
Q12737077
USER
Which occupation was a position occupied by Gyula Justh ?
(Q1102255,P39,c(Q12737077))
action filter_type
action find
entity Q1102255
relation P39
type Q12737077
['Q1102255', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q12737077 . resource:Q1102255 property:P39 ?a }
Gyula Justh
action filter_type
action find
entity Gyula Justh
relation position held
type occupation
['Gyula Justh', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:occupation . resource:Gyula_Justh property:position_held ?a }
[]
occupation
Q17590876
SYSTEM
member of the National Assembly of Hungary
Q17590876
(Q1102255,P39,c(Q12737077))
action filter_type
action find
entity Q1102255
relation P39
type Q12737077
A [ANSWER] was a position occupied by Gyula Justh
['Q1102255', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q12737077 . resource:Q1102255 property:P39 ?a }
member of the National Assembly of Hungary
A member of the National Assembly of Hungary was a position occupied by Gyula Justh
member of the National Assembly of Hungary
action filter_type
action find
entity Gyula Justh
relation position held
type occupation
['Gyula Justh', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:occupation . resource:Gyula_Justh property:position_held ?a }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1102255
P937
Q56061
USER
Which administrative territory is the work location of that person ?
(Q17590876,P937,c(Q56061))
action filter_type
action find
entity Q1102255
relation P937
type Q56061
['Q17590876', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?y WHERE { resource:Q1102255 property:P937 ?y . ?y rdf:type ontology:Q56061 }
Gyula Justh
action filter_type
action find
entity Gyula Justh
relation work location
type administrative territorial entity
['member of the National Assembly of Hungary', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:Gyula_Justh property:work_location ?y . ?y rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1781
SYSTEM
Budapest
Q1781
(Q17590876,P937,c(Q56061))
action filter_type
action find
entity Q1102255
relation P937
type Q56061
[ANSWER] is the work location of that person
['Q17590876', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?y WHERE { resource:Q1102255 property:P937 ?y . ?y rdf:type ontology:Q56061 }
Budapest
Budapest is the work location of that person
Budapest
action filter_type
action find
entity Gyula Justh
relation work location
type administrative territorial entity
['member of the National Assembly of Hungary', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:Gyula_Justh property:work_location ?y . ?y rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q7884023 Q1102255
P840 P937
Q56061
USER
Which administrative territories are the work locations of Gyula Justh or are the narrative locations of Undoing ?
OR((Q1102255,P937,c(Q56061)), (Q7884023,P840,c(Q56061)))
action filter_type
action union
action find
entity Q1102255
relation P937
action find
entity Q7884023
relation P840
type Q56061
{'OR': [['Q1102255', 'P937', {'concept': 'Q56061'}], ['Q7884023', 'P840', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Q1102255 property:P937 ?l } UNION { resource:Q7884023 property:P840 ?l } } . ?l rdf:type ontology:Q56061 }
Undoing Gyula Justh
action filter_type
action union
action find
entity Gyula Justh
relation work location
action find
entity Undoing
relation narrative location
type administrative territorial entity
{'OR': [['Gyula Justh', 'work location', {'concept': 'administrative territorial entity'}], ['Undoing', 'narrative location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Gyula_Justh property:work_location ?l } UNION { resource:Undoing property:narrative_location ?l } } . ?l rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q65 Q1781
SYSTEM
Los Angeles, Budapest
Q65 Q1781
OR((Q1102255,P937,c(Q56061)), (Q7884023,P840,c(Q56061)))
action filter_type
action union
action find
entity Q1102255
relation P937
action find
entity Q7884023
relation P840
type Q56061
[ANSWERS] are the work locations of Gyula Justh or are the narrative locations of Undoing
{'OR': [['Q1102255', 'P937', {'concept': 'Q56061'}], ['Q7884023', 'P840', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Q1102255 property:P937 ?l } UNION { resource:Q7884023 property:P840 ?l } } . ?l rdf:type ontology:Q56061 }
Los Angeles Budapest
Los Angeles and Budapest are the work locations of Gyula Justh or are the narrative locations of Undoing
Los Angeles Budapest
action filter_type
action union
action find
entity Gyula Justh
relation work location
action find
entity Undoing
relation narrative location
type administrative territorial entity
{'OR': [['Gyula Justh', 'work location', {'concept': 'administrative territorial entity'}], ['Undoing', 'narrative location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Gyula_Justh property:work_location ?l } UNION { resource:Undoing property:narrative_location ?l } } . ?l rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1781
P36
Q7275
USER
Which states consists of Budapest as their capital ?
(c(Q7275),P36,Q1781)
action filter_type
action find_reverse
entity Q1781
relation P36
type Q7275
[{'concept': 'Q7275'}, 'P36', 'Q1781']
SELECT DISTINCT ?h WHERE { ?h property:P36 resource:Q1781 . ?h rdf:type ontology:Q7275 }
Budapest
action filter_type
action find_reverse
entity Budapest
relation capital
type state
[{'concept': 'state'}, 'capital', 'Budapest']
SELECT DISTINCT ?h WHERE { ?h property:capital resource:Budapest . ?h rdf:type ontology:state }
[]
state
Q171150 Q16410 Q600018
SYSTEM
Kingdom of Hungary, People's Republic of Hungary, Kingdom of Hungary
Q16410 Q600018 Q171150 Q940741
(c(Q7275),P36,Q1781)
action filter_type
action find_reverse
entity Q1781
relation P36
type Q7275
[ANSWERS] consist of Budapest as their capital
[{'concept': 'Q7275'}, 'P36', 'Q1781']
SELECT DISTINCT ?h WHERE { ?h property:P36 resource:Q1781 . ?h rdf:type ontology:Q7275 }
People's Republic of Hungary Kingdom of Hungary Kingdom of Hungary Republic of Hungary
Kingdom of Hungary, People's Republic of Hungary and Kingdom of Hungary consist of Budapest as their capital
Kingdom of Hungary People's Republic of Hungary Kingdom of Hungary
action filter_type
action find_reverse
entity Budapest
relation capital
type state
[{'concept': 'state'}, 'capital', 'Budapest']
SELECT DISTINCT ?h WHERE { ?h property:capital resource:Budapest . ?h rdf:type ontology:state }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q171150 Q16410 Q600018
P19
Q502895
USER
Who have location of birth at Kingdom of Hungary, People's Republic of Hungary and Kingdom of Hungary ?
(c(Q502895),P19,Q171150) (c(Q502895),P19,Q16410) (c(Q502895),P19,Q600018)
action union
action filter_type
action find_reverse
entity Q171150
relation P19
type Q502895
action filter_type
action find_reverse
entity Q16410
relation P19
type Q502895
action filter_type
action find_reverse
entity Q600018
relation P19
type Q502895
[{'concept': 'Q502895'}, 'P19', 'Q171150'] [{'concept': 'Q502895'}, 'P19', 'Q16410'] [{'concept': 'Q502895'}, 'P19', 'Q600018']
SELECT DISTINCT ?a WHERE { ?a property:P19 ?u . VALUES ( ?u ) { ( resource:Q171150 ) ( resource:Q16410 ) } }
Kingdom of Hungary People's Republic of Hungary Kingdom of Hungary
action union
action filter_type
action find_reverse
entity Kingdom of Hungary
relation place of birth
type common name
action filter_type
action find_reverse
entity People's Republic of Hungary
relation place of birth
type common name
action filter_type
action find_reverse
entity Kingdom of Hungary
relation place of birth
type common name
[{'concept': 'common name'}, 'place of birth', 'Kingdom of Hungary'] [{'concept': 'common name'}, 'place of birth', "People's Republic of Hungary"] [{'concept': 'common name'}, 'place of birth', 'Kingdom of Hungary']
SELECT DISTINCT ?a WHERE { ?a property:place_of_birth ?u . VALUES ( ?u ) { ( resource:Kingdom_of_Hungary ) ( resource:People's_Republic_of_Hungary ) } }
[]
common name
Q86978 Q250731 Q638685
SYSTEM
Béla III of Hungary, Álmos, Duke of Nitra, Saint Maurus of Nitra
Q652975 Q638685 Q1100412 Q2846999 Q1302000 Q86978 Q13420912 Q250731 Q7614740 Q849043 Q99298 Q3190649 Q1001691 Q3190650 Q1818696 Q139980 Q4759791 Q3101974
(c(Q502895),P19,Q171150) (c(Q502895),P19,Q16410) (c(Q502895),P19,Q600018)
action union
action filter_type
action find_reverse
entity Q171150
relation P19
type Q502895
action filter_type
action find_reverse
entity Q16410
relation P19
type Q502895
action filter_type
action find_reverse
entity Q600018
relation P19
type Q502895
[ANSWERS] have location of birth at Kingdom of Hungary, People's Republic of Hungary and Kingdom of Hungary
[{'concept': 'Q502895'}, 'P19', 'Q171150'] [{'concept': 'Q502895'}, 'P19', 'Q16410'] [{'concept': 'Q502895'}, 'P19', 'Q600018']
SELECT DISTINCT ?a WHERE { ?a property:P19 ?u . VALUES ( ?u ) { ( resource:Q171150 ) ( resource:Q16410 ) } }
László Mednyánszky Saint Maurus of Nitra Lajos Jekelfalussy Andrew Both de Bajna Nicholas Szécsi Béla III of Hungary Jozef Kološ Álmos, Duke of Nitra Steven Gaal Sámuel Brassai Franz Hillinger John Both de Bajna István Fischer János Kanizsai Leo Pfeffer Oszkár Jászi András Simonyi George Vari
Béla III of Hungary, Álmos, Duke of Nitra and Saint Maurus of Nitra have location of birth at Kingdom of Hungary, People's Republic of Hungary and Kingdom of Hungary
Béla III of Hungary Álmos, Duke of Nitra Saint Maurus of Nitra
action union
action filter_type
action find_reverse
entity Kingdom of Hungary
relation place of birth
type common name
action filter_type
action find_reverse
entity People's Republic of Hungary
relation place of birth
type common name
action filter_type
action find_reverse
entity Kingdom of Hungary
relation place of birth
type common name
[{'concept': 'common name'}, 'place of birth', 'Kingdom of Hungary'] [{'concept': 'common name'}, 'place of birth', "People's Republic of Hungary"] [{'concept': 'common name'}, 'place of birth', 'Kingdom of Hungary']
SELECT DISTINCT ?a WHERE { ?a property:place_of_birth ?u . VALUES ( ?u ) { ( resource:Kingdom_of_Hungary ) ( resource:People's_Republic_of_Hungary ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q171150
P1376
Q56061
USER
Which administrative territories are center of administration for Kingdom of Hungary ?
(c(Q56061),P1376,Q171150)
action filter_type
action find_reverse
entity Q171150
relation P1376
type Q56061
[{'concept': 'Q56061'}, 'P1376', 'Q171150']
SELECT DISTINCT ?s WHERE { ?s property:P1376 resource:Q171150 . ?s rdf:type ontology:Q56061 }
Kingdom of Hungary
action filter_type
action find_reverse
entity Kingdom of Hungary
relation capital of
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'capital of', 'Kingdom of Hungary']
SELECT DISTINCT ?s WHERE { ?s property:capital_of resource:Kingdom_of_Hungary . ?s rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q193478 Q1780 Q1781
SYSTEM
Buda, Bratislava, Budapest
Q193478 Q1780 Q1781
(c(Q56061),P1376,Q171150)
action filter_type
action find_reverse
entity Q171150
relation P1376
type Q56061
[ANSWERS] are center of administration for Kingdom of Hungary
[{'concept': 'Q56061'}, 'P1376', 'Q171150']
SELECT DISTINCT ?s WHERE { ?s property:P1376 resource:Q171150 . ?s rdf:type ontology:Q56061 }
Buda Bratislava Budapest
Buda, Bratislava and Budapest are center of administration for Kingdom of Hungary
Buda Bratislava Budapest
action filter_type
action find_reverse
entity Kingdom of Hungary
relation capital of
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'capital of', 'Kingdom of Hungary']
SELECT DISTINCT ?s WHERE { ?s property:capital_of resource:Kingdom_of_Hungary . ?s rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q193478 Q1780 Q1781
P119
Q502895
USER
Which people have those administrative territories as his/her tomb ?
(c(Q502895),P119,Q193478) (c(Q502895),P119,Q1780) (c(Q502895),P119,Q1781)
action filter_type
action find_reverse
entity prev_answer
relation P119
type Q502895
[{'concept': 'Q502895'}, 'P119', 'Q193478'] [{'concept': 'Q502895'}, 'P119', 'Q1780'] [{'concept': 'Q502895'}, 'P119', 'Q1781']
SELECT DISTINCT ?l WHERE { ?l property:P119 ?p . ?l rdf:type ontology:Q502895 . VALUES ( ?p ) { ( resource:Q193478 ) ( resource:Q1780 ) ( resource:Q1781 ) } }
Buda Bratislava Budapest
action filter_type
action find_reverse
entity prev_answer
relation place of burial
type common name
[{'concept': 'common name'}, 'place of burial', 'Buda'] [{'concept': 'common name'}, 'place of burial', 'Bratislava'] [{'concept': 'common name'}, 'place of burial', 'Budapest']
SELECT DISTINCT ?l WHERE { ?l property:place_of_burial ?p . ?l rdf:type ontology:common_name . VALUES ( ?p ) { ( resource:Buda ) ( resource:Bratislava ) ( resource:Budapest ) } }
[]
common name
Q181615 Q150543 Q15936542
SYSTEM
Catherine of Poděbrady, Alexander Dubček, József Takács
Q181615 Q150543 Q791393 Q742959 Q242825 Q15936542
(c(Q502895),P119,Q193478) (c(Q502895),P119,Q1780) (c(Q502895),P119,Q1781)
action filter_type
action find_reverse
entity prev_answer
relation P119
type Q502895
[ANSWERS] have those administrative territories as his/her tomb
[{'concept': 'Q502895'}, 'P119', 'Q193478'] [{'concept': 'Q502895'}, 'P119', 'Q1780'] [{'concept': 'Q502895'}, 'P119', 'Q1781']
SELECT DISTINCT ?l WHERE { ?l property:P119 ?p . ?l rdf:type ontology:Q502895 . VALUES ( ?p ) { ( resource:Q193478 ) ( resource:Q1780 ) ( resource:Q1781 ) } }
Catherine of Poděbrady Alexander Dubček József Batthyány Mihály Zichy Elizabeth of Poland, Queen of Hungary József Takács
Catherine of Poděbrady, Alexander Dubček and József Takács have those administrative territories as his/her tomb
Catherine of Poděbrady Alexander Dubček József Takács
action filter_type
action find_reverse
entity prev_answer
relation place of burial
type common name
[{'concept': 'common name'}, 'place of burial', 'Buda'] [{'concept': 'common name'}, 'place of burial', 'Bratislava'] [{'concept': 'common name'}, 'place of burial', 'Budapest']
SELECT DISTINCT ?l WHERE { ?l property:place_of_burial ?p . ?l rdf:type ontology:common_name . VALUES ( ?p ) { ( resource:Buda ) ( resource:Bratislava ) ( resource:Budapest ) } }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q181615 Q150543 Q15936542
P21
Q290
USER
Which sexes do Catherine of Poděbrady, Alexander Dubček and József Takács belong to ?
(Q181615,P21,c(Q290)) (Q150543,P21,c(Q290)) (Q15936542,P21,c(Q290))
action union
action filter_type
action find
entity Q181615
relation P21
type Q290
action filter_type
action find
entity Q150543
relation P21
type Q290
action filter_type
action find
entity Q15936542
relation P21
type Q290
['Q181615', 'P21', {'concept': 'Q290'}] ['Q150543', 'P21', {'concept': 'Q290'}] ['Q15936542', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?e WHERE { VALUES ( ?p ) { ( resource:Q181615 ) ( resource:Q150543 ) } . ?p property:P21 ?e }
Catherine of Poděbrady Alexander Dubček József Takács
action union
action filter_type
action find
entity Catherine of Poděbrady
relation gender
type sex
action filter_type
action find
entity Alexander Dubček
relation gender
type sex
action filter_type
action find
entity József Takács
relation gender
type sex
['Catherine of Poděbrady', 'gender', {'concept': 'sex'}] ['Alexander Dubček', 'gender', {'concept': 'sex'}] ['József Takács', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?e WHERE { VALUES ( ?p ) { ( resource:Catherine_of_Poděbrady ) ( resource:Alexander_Dubček ) } . ?p property:gender ?e }
[]
sex
Q6581072 Q6581097 Q6581097
SYSTEM
male for 2nd, 3rd, female for 1st
Q6581072 Q6581097 Q6581097
(Q181615,P21,c(Q290)) (Q150543,P21,c(Q290)) (Q15936542,P21,c(Q290))
action union
action filter_type
action find
entity Q181615
relation P21
type Q290
action filter_type
action find
entity Q150543
relation P21
type Q290
action filter_type
action find
entity Q15936542
relation P21
type Q290
[ANSWERS]
['Q181615', 'P21', {'concept': 'Q290'}] ['Q150543', 'P21', {'concept': 'Q290'}] ['Q15936542', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?e WHERE { VALUES ( ?p ) { ( resource:Q181615 ) ( resource:Q150543 ) } . ?p property:P21 ?e }
female male male
Female, male and male Catherine of Poděbrady, Alexander Dubček and József Takács belong to
female male male
action union
action filter_type
action find
entity Catherine of Poděbrady
relation gender
type sex
action filter_type
action find
entity Alexander Dubček
relation gender
type sex
action filter_type
action find
entity József Takács
relation gender
type sex
['Catherine of Poděbrady', 'gender', {'concept': 'sex'}] ['Alexander Dubček', 'gender', {'concept': 'sex'}] ['József Takács', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?e WHERE { VALUES ( ?p ) { ( resource:Catherine_of_Poděbrady ) ( resource:Alexander_Dubček ) } . ?p property:gender ?e }
[]