Simple Question (Direct)
Simple Question
Q5944962
P7
Q502895
USER
Which person is the brother of José Ramón Mélida ?
(Q5944962,P7,c(Q502895))
action filter_type
action find
entity Q5944962
relation P7
type Q502895
['Q5944962', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?l WHERE { resource:Q5944962 property:P7 ?l . ?l rdf:type ontology:Q502895 }
José Ramón Mélida
action filter_type
action find
entity José Ramón Mélida
relation brother
type common name
['José Ramón Mélida', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?l WHERE { resource:José_Ramón_Mélida property:brother ?l . ?l rdf:type ontology:common_name }
[]
common name
Q939903
SYSTEM
Enrique Mélida
Q939903
(Q5944962,P7,c(Q502895))
action filter_type
action find
entity Q5944962
relation P7
type Q502895
[ANSWER] is the brother of José Ramón Mélida
['Q5944962', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?l WHERE { resource:Q5944962 property:P7 ?l . ?l rdf:type ontology:Q502895 }
Enrique Mélida
Enrique Mélida is the brother of José Ramón Mélida
Enrique Mélida
action filter_type
action find
entity José Ramón Mélida
relation brother
type common name
['José Ramón Mélida', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?l WHERE { resource:José_Ramón_Mélida property:brother ?l . ?l rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q939903
P19
Q56061
USER
Which administrative territory was that person born at ?
(Q939903,P19,c(Q56061))
action filter_type
action find
entity Q939903
relation P19
type Q56061
['Q939903', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?e WHERE { resource:Q939903 property:P19 ?e . ?e rdf:type ontology:Q56061 }
Enrique Mélida
action filter_type
action find
entity Enrique Mélida
relation place of birth
type administrative territorial entity
['Enrique Mélida', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:Enrique_Mélida property:place_of_birth ?e . ?e rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q2807
SYSTEM
Madrid
Q2807
(Q939903,P19,c(Q56061))
action filter_type
action find
entity Q939903
relation P19
type Q56061
That person was born in [ANSWER]
['Q939903', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?e WHERE { resource:Q939903 property:P19 ?e . ?e rdf:type ontology:Q56061 }
Madrid
That person was born in Madrid
Madrid
action filter_type
action find
entity Enrique Mélida
relation place of birth
type administrative territorial entity
['Enrique Mélida', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:Enrique_Mélida property:place_of_birth ?e . ?e rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P740
Q28640 Q2088357
USER
How many professions and musical ensembles originated at that administrative territory ?
(c(Q28640),P740,Q2807) (c(Q2088357),P740,Q2807) (c(Q28640),P740,Q2807) (c(Q2088357),P740,Q2807)
action count
action union
action filter_type
action find_reverse
entity Q2807
relation P740
type Q28640
action filter_type
action find_reverse
entity Q2807
relation P740
type Q2088357
[{'concept': 'Q28640'}, 'P740', 'Q2807'] [{'concept': 'Q2088357'}, 'P740', 'Q2807'] [{'concept': 'Q28640'}, 'P740', 'Q2807'] [{'concept': 'Q2088357'}, 'P740', 'Q2807']
SELECT DISTINCT ( COUNT ( ?m ) AS ?q ) WHERE { { ?m property:P740 resource:Q2807 . ?m rdf:type ontology:Q28640 } UNION { ?m property:P740 resource:Q2807 . ?m rdf:type ontology:Q2088357 } }
action count
action union
action filter_type
action find_reverse
entity Madrid
relation location of formation
type profession
action filter_type
action find_reverse
entity Madrid
relation location of formation
type musical ensemble
[{'concept': 'profession'}, 'location of formation', 'Madrid'] [{'concept': 'musical ensemble'}, 'location of formation', 'Madrid'] [{'concept': 'profession'}, 'location of formation', 'Madrid'] [{'concept': 'musical ensemble'}, 'location of formation', 'Madrid']
SELECT DISTINCT ( COUNT ( ?m ) AS ?q ) WHERE { { ?m property:location_of_formation resource:Madrid . ?m rdf:type ontology:profession } UNION { ?m property:location_of_formation resource:Madrid . ?m rdf:type ontology:musical_ensemble } }
[]
profession musical ensemble
SYSTEM
1 professions and 14 musical ensembles
Q1458309 Q1771646 Q1542704 Q1637602 Q1362846 Q15041028 Q1617310 Q3359389 Q19540128 Q16885815 Q3773349 Q2621213 Q1546362 Q16738149 Q1870505
(c(Q28640),P740,Q2807) (c(Q2088357),P740,Q2807) (c(Q28640),P740,Q2807) (c(Q2088357),P740,Q2807)
action count
action union
action filter_type
action find_reverse
entity Q2807
relation P740
type Q28640
action filter_type
action find_reverse
entity Q2807
relation P740
type Q2088357
[ANSWER]
[{'concept': 'Q28640'}, 'P740', 'Q2807'] [{'concept': 'Q2088357'}, 'P740', 'Q2807'] [{'concept': 'Q28640'}, 'P740', 'Q2807'] [{'concept': 'Q2088357'}, 'P740', 'Q2807']
SELECT DISTINCT ( COUNT ( ?m ) AS ?q ) WHERE { { ?m property:P740 resource:Q2807 . ?m rdf:type ontology:Q28640 } UNION { ?m property:P740 resource:Q2807 . ?m rdf:type ontology:Q2088357 } }
Sôber Alaska y los Pegamoides Alaska y Dinarama Teitanblood La 5ª Estación Al Berkowitz Péndulo Studios, S.L. Hybrid Hinds Speak Low Stravaganzza Dreamaker Skizoo Lords of Black Los Bravos
1 professions and 14 musical ensembles
action count
action union
action filter_type
action find_reverse
entity Madrid
relation location of formation
type profession
action filter_type
action find_reverse
entity Madrid
relation location of formation
type musical ensemble
[{'concept': 'profession'}, 'location of formation', 'Madrid'] [{'concept': 'musical ensemble'}, 'location of formation', 'Madrid'] [{'concept': 'profession'}, 'location of formation', 'Madrid'] [{'concept': 'musical ensemble'}, 'location of formation', 'Madrid']
SELECT DISTINCT ( COUNT ( ?m ) AS ?q ) WHERE { { ?m property:location_of_formation resource:Madrid . ?m rdf:type ontology:profession } UNION { ?m property:location_of_formation resource:Madrid . ?m rdf:type ontology:musical_ensemble } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q3275357 Q939903
P7
Q502895
USER
Which people had Enrique Mélida or Sima Wei as brother ?
OR((c(Q502895),P7,Q939903), (c(Q502895),P7,Q3275357))
action filter_type
action union
action find_reverse
entity Q939903
relation P7
action find_reverse
entity Q3275357
relation P7
type Q502895
{'OR': [[{'concept': 'Q502895'}, 'P7', 'Q939903'], [{'concept': 'Q502895'}, 'P7', 'Q3275357']]}
SELECT DISTINCT ?h WHERE { { { ?h property:P7 resource:Q3275357 } UNION { ?h property:P7 resource:Q939903 } } . ?h rdf:type ontology:Q502895 }
Sima Wei Enrique Mélida
action filter_type
action union
action find_reverse
entity Enrique Mélida
relation brother
action find_reverse
entity Sima Wei
relation brother
type common name
{'OR': [[{'concept': 'common name'}, 'brother', 'Enrique Mélida'], [{'concept': 'common name'}, 'brother', 'Sima Wei']]}
SELECT DISTINCT ?h WHERE { { { ?h property:brother resource:Sima_Wei } UNION { ?h property:brother resource:Enrique_Mélida } } . ?h rdf:type ontology:common_name }
[]
common name
Q10916640 Q10916600 Q11084348 Q16603622 Q2286938 Q7357 Q10916615 Q521720 Q11124043 Q16603715
SYSTEM
Some of them are Sima Yan, Sima Yun, princess Xinfeng, princess Xiangcheng, Sima Jian, Emperor Hui of Jin, Sima Hui, Arturo Mélida, princess Wuan, princess Yangping
Q10916652 Q1153086 Q521720 Q11061364 Q11060332 Q7361 Q10916698 Q5944962 Q16603715 Q11064666 Q10916600 Q10916666 Q10916664 Q3276223 Q2286938 Q985721 Q10916668 Q16603495 Q16603496 Q16603499 Q16603602 Q16603508 Q16603622 Q16603563 Q11124043 Q15894785 Q7357 Q10916631 Q10916619 Q10916615 Q11084348 Q10916640
OR((c(Q502895),P7,Q939903), (c(Q502895),P7,Q3275357))
action filter_type
action union
action find_reverse
entity Q939903
relation P7
action find_reverse
entity Q3275357
relation P7
type Q502895
[ANSWERS] had Enrique Mélida or Sima Wei as brother
{'OR': [[{'concept': 'Q502895'}, 'P7', 'Q939903'], [{'concept': 'Q502895'}, 'P7', 'Q3275357']]}
SELECT DISTINCT ?h WHERE { { { ?h property:P7 resource:Q3275357 } UNION { ?h property:P7 resource:Q939903 } } . ?h rdf:type ontology:Q502895 }
Sima Zhi Sima Yan Arturo Mélida princess Pingyang princess Changshan Emperor Huai of Jin Sima Xia José Ramón Mélida princess Yangping princess Guangping Sima Yun Sima Gai Sima Yu Sima Ai Sima Jian Sima Ying Sima Gui princess Xingyang elder princess Xingyang princess Yingchuan princess Wannian princess Lingshou princess Xiangcheng princess Fanchang princess Wuan Sima Mo Emperor Hui of Jin Sima Jing Sima Xian Sima Hui princess Xinfeng Sima Yan
Sima Yan, Sima Yun, princess Xinfeng, princess Xiangcheng, Sima Jian, Emperor Hui of Jin, Sima Hui, Arturo Mélida, princess Wuan and princess Yangping had Enrique Mélida or Sima Wei as brother
Sima Yan Sima Yun princess Xinfeng princess Xiangcheng Sima Jian Emperor Hui of Jin Sima Hui Arturo Mélida princess Wuan princess Yangping
action filter_type
action union
action find_reverse
entity Enrique Mélida
relation brother
action find_reverse
entity Sima Wei
relation brother
type common name
{'OR': [[{'concept': 'common name'}, 'brother', 'Enrique Mélida'], [{'concept': 'common name'}, 'brother', 'Sima Wei']]}
SELECT DISTINCT ?h WHERE { { { ?h property:brother resource:Sima_Wei } UNION { ?h property:brother resource:Enrique_Mélida } } . ?h rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q65
P190
Q15617994 Q56061
USER
How many administrative territories and administrative territories are the sister cities of Los Angeles ?
(Q65,P190,c(Q15617994)) (Q65,P190,c(Q56061))
action count
action union
action filter_type
action find
entity Q65
relation P190
type Q15617994
action filter_type
action find
entity Q65
relation P190
type Q56061
['Q65', 'P190', {'concept': 'Q15617994'}] ['Q65', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?v ) WHERE { VALUES ( ?w ) { ( ontology:Q56061 ) ( ontology:Q15617994 ) } . ?g rdf:type ?w }
Los Angeles
action count
action union
action filter_type
action find
entity Los Angeles
relation sister city
type designation for an administrative territorial entity
action filter_type
action find
entity Los Angeles
relation sister city
type administrative territorial entity
['Los Angeles', 'sister city', {'concept': 'designation for an administrative territorial entity'}] ['Los Angeles', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?v ) WHERE { VALUES ( ?w ) { ( ontology:administrative_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } . ?g rdf:type ?w }
[]
designation for an administrative territorial entity administrative territorial entity
SYSTEM
21
Q24639 Q1156 Q72134 Q1489 Q3630 Q938802 Q134762 Q18125 Q171639 Q3820 Q1524 Q340 Q37100 Q1867 Q84 Q23564 Q64 Q3881 Q81788 Q4115712 Q1479
(Q65,P190,c(Q15617994)) (Q65,P190,c(Q56061))
action count
action union
action filter_type
action find
entity Q65
relation P190
type Q15617994
action filter_type
action find
entity Q65
relation P190
type Q56061
[ANSWER]
['Q65', 'P190', {'concept': 'Q15617994'}] ['Q65', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?v ) WHERE { VALUES ( ?w ) { ( ontology:Q56061 ) ( ontology:Q15617994 ) } . ?g rdf:type ?w }
Vancouver Mumbai Ischia Mexico City Jakarta Santa Maria degli Angeli Eilat Manchester Ashdod Beirut Athens Montreal Auckland Taipei London Podgorica Berlin Lusaka Giza Kaunas Bordeaux
21
action count
action union
action filter_type
action find
entity Los Angeles
relation sister city
type designation for an administrative territorial entity
action filter_type
action find
entity Los Angeles
relation sister city
type administrative territorial entity
['Los Angeles', 'sister city', {'concept': 'designation for an administrative territorial entity'}] ['Los Angeles', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?v ) WHERE { VALUES ( ?w ) { ( ontology:administrative_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } . ?g rdf:type ?w }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581097 Q16603715
P9 P21
Q502895
USER
Which people had princess Yangping as sister and have the gender as male ?
AND((c(Q502895),P9,Q16603715), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q16603715
relation P9
action find_reverse
entity Q6581097
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P9', 'Q16603715'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?h WHERE { ?h property:P9 resource:Q16603715 . ?h property:P21 resource:Q6581097 . ?h rdf:type ontology:Q502895 }
male princess Yangping
action filter_type
action intersection
action find_reverse
entity princess Yangping
relation sister
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'sister', 'princess Yangping'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?h WHERE { ?h property:sister resource:princess_Yangping . ?h property:gender resource:male . ?h rdf:type ontology:common_name }
[]
common name
Q10916652 Q10916619 Q985721 Q2286938 Q10916640 Q3276223 Q10916666 Q7357 Q10916698 Q1153086
SYSTEM
Some of them are Sima Zhi, Sima Xian, Sima Ying, Sima Jian, Sima Yan, Sima Ai, Sima Gai, Emperor Hui of Jin, Sima Xia, Sima Yan
Q10916652 Q10916640 Q10916664 Q3276223 Q2286938 Q10916666 Q7357 Q1153086 Q3275357 Q10916668 Q10916600 Q7361 Q10916631 Q10916619 Q10916615 Q985721 Q10916698 Q15894785
AND((c(Q502895),P9,Q16603715), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q16603715
relation P9
action find_reverse
entity Q6581097
relation P21
type Q502895
[ANSWERS] had princess Yangping as sister and have the gender as male
{'AND': [[{'concept': 'Q502895'}, 'P9', 'Q16603715'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?h WHERE { ?h property:P9 resource:Q16603715 . ?h property:P21 resource:Q6581097 . ?h rdf:type ontology:Q502895 }
Sima Zhi Sima Yan Sima Yu Sima Ai Sima Jian Sima Gai Emperor Hui of Jin Sima Yan Sima Wei Sima Gui Sima Yun Emperor Huai of Jin Sima Jing Sima Xian Sima Hui Sima Ying Sima Xia Sima Mo
Sima Zhi, Sima Xian, Sima Ying, Sima Jian, Sima Yan, Sima Ai, Sima Gai, Emperor Hui of Jin, Sima Xia and Sima Yan had princess Yangping as sister and have the gender as male
Sima Zhi Sima Xian Sima Ying Sima Jian Sima Yan Sima Ai Sima Gai Emperor Hui of Jin Sima Xia Sima Yan
action filter_type
action intersection
action find_reverse
entity princess Yangping
relation sister
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'sister', 'princess Yangping'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?h WHERE { ?h property:sister resource:princess_Yangping . ?h property:gender resource:male . ?h rdf:type ontology:common_name }
[]