Simple Question (Direct)
Simple Question
Q318491
P20
Q486972
USER
Which human settlement is the place of death of Abel Salazar ?
(Q318491,P20,c(Q486972))
action filter_type
action find
entity Q318491
relation P20
type Q486972
['Q318491', 'P20', {'concept': 'Q486972'}]
SELECT DISTINCT ?f WHERE { resource:Q318491 property:P20 ?f . ?f rdf:type ontology:Q486972 }
Abel Salazar
action filter_type
action find
entity Abel Salazar
relation place of death
type human settlement
['Abel Salazar', 'place of death', {'concept': 'human settlement'}]
SELECT DISTINCT ?f WHERE { resource:Abel_Salazar property:place_of_death ?f . ?f rdf:type ontology:human_settlement }
[]
human settlement
Q204245
SYSTEM
Cuernavaca
Q204245
(Q318491,P20,c(Q486972))
action filter_type
action find
entity Q318491
relation P20
type Q486972
[ANSWER] is the place of death of Abel Salazar
['Q318491', 'P20', {'concept': 'Q486972'}]
SELECT DISTINCT ?f WHERE { resource:Q318491 property:P20 ?f . ?f rdf:type ontology:Q486972 }
Cuernavaca
Cuernavaca is the place of death of Abel Salazar
Cuernavaca
action filter_type
action find
entity Abel Salazar
relation place of death
type human settlement
['Abel Salazar', 'place of death', {'concept': 'human settlement'}]
SELECT DISTINCT ?f WHERE { resource:Abel_Salazar property:place_of_death ?f . ?f rdf:type ontology:human_settlement }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q318491
P162
Q838948
USER
Which work of art created Abel Salazar ?
(c(Q838948),P162,Q318491)
action filter_type
action find_reverse
entity Q318491
relation P162
type Q838948
[{'concept': 'Q838948'}, 'P162', 'Q318491']
SELECT DISTINCT ?s WHERE { ?s property:P162 resource:Q318491 . ?s rdf:type ontology:Q838948 }
Abel Salazar
action filter_type
action find_reverse
entity Abel Salazar
relation producer
type work of art
[{'concept': 'work of art'}, 'producer', 'Abel Salazar']
SELECT DISTINCT ?s WHERE { ?s property:producer resource:Abel_Salazar . ?s rdf:type ontology:work_of_art }
[]
work of art
Q7728478
SYSTEM
The Curse of the Crying Woman
Q7728478
(c(Q838948),P162,Q318491)
action filter_type
action find_reverse
entity Q318491
relation P162
type Q838948
[ANSWER] created Abel Salazar
[{'concept': 'Q838948'}, 'P162', 'Q318491']
SELECT DISTINCT ?s WHERE { ?s property:P162 resource:Q318491 . ?s rdf:type ontology:Q838948 }
The Curse of the Crying Woman
The Curse of the Crying Woman created Abel Salazar
The Curse of the Crying Woman
action filter_type
action find_reverse
entity Abel Salazar
relation producer
type work of art
[{'concept': 'work of art'}, 'producer', 'Abel Salazar']
SELECT DISTINCT ?s WHERE { ?s property:producer resource:Abel_Salazar . ?s rdf:type ontology:work_of_art }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q7728478
P136
Q1792379
USER
What can be considered as category for that work of art ?
(Q7728478,P136,c(Q1792379))
action filter_type
action find
entity Q7728478
relation P136
type Q1792379
['Q7728478', 'P136', {'concept': 'Q1792379'}]
SELECT DISTINCT ?c WHERE { resource:Q7728478 property:P136 ?c . ?c rdf:type ontology:Q1792379 }
The Curse of the Crying Woman
action filter_type
action find
entity The Curse of the Crying Woman
relation genre
type art genre
['The Curse of the Crying Woman', 'genre', {'concept': 'art genre'}]
SELECT DISTINCT ?c WHERE { resource:The_Curse_of_the_Crying_Woman property:genre ?c . ?c rdf:type ontology:art_genre }
[]
art genre
Q200092
SYSTEM
horror film
Q200092
(Q7728478,P136,c(Q1792379))
action filter_type
action find
entity Q7728478
relation P136
type Q1792379
The [ANSWER] can be considered as category for that work of art
['Q7728478', 'P136', {'concept': 'Q1792379'}]
SELECT DISTINCT ?c WHERE { resource:Q7728478 property:P136 ?c . ?c rdf:type ontology:Q1792379 }
horror film
The horror film can be considered as category for that work of art
horror film
action filter_type
action find
entity The Curse of the Crying Woman
relation genre
type art genre
['The Curse of the Crying Woman', 'genre', {'concept': 'art genre'}]
SELECT DISTINCT ?c WHERE { resource:The_Curse_of_the_Crying_Woman property:genre ?c . ?c rdf:type ontology:art_genre }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P136
Q2342494 Q1914636
USER
How many collectables or activities as that art genre as their class ?
(c(Q2342494),P136,Q200092) (c(Q1914636),P136,Q200092) (c(Q2342494),P136,Q200092) (c(Q1914636),P136,Q200092)
action count
action union
action filter_type
action find_reverse
entity Q200092
relation P136
type Q2342494
action filter_type
action find_reverse
entity Q200092
relation P136
type Q1914636
[{'concept': 'Q2342494'}, 'P136', 'Q200092'] [{'concept': 'Q1914636'}, 'P136', 'Q200092'] [{'concept': 'Q2342494'}, 'P136', 'Q200092'] [{'concept': 'Q1914636'}, 'P136', 'Q200092']
SELECT DISTINCT ( COUNT ( ?q ) AS ?u ) WHERE { { ?q rdf:type ontology:Q2342494 . ?q property:P136 resource:Q200092 } UNION { ?q property:P136 resource:Q200092 . ?q rdf:type ontology:Q1914636 } }
action count
action union
action filter_type
action find_reverse
entity horror film
relation genre
type collectable
action filter_type
action find_reverse
entity horror film
relation genre
type activity
[{'concept': 'collectable'}, 'genre', 'horror film'] [{'concept': 'activity'}, 'genre', 'horror film'] [{'concept': 'collectable'}, 'genre', 'horror film'] [{'concept': 'activity'}, 'genre', 'horror film']
SELECT DISTINCT ( COUNT ( ?q ) AS ?u ) WHERE { { ?q rdf:type ontology:collectable . ?q property:genre resource:horror_film } UNION { ?q property:genre resource:horror_film . ?q rdf:type ontology:activity } }
[]
collectable activity
SYSTEM
2
Q5274326 Q1168659
(c(Q2342494),P136,Q200092) (c(Q1914636),P136,Q200092) (c(Q2342494),P136,Q200092) (c(Q1914636),P136,Q200092)
action count
action union
action filter_type
action find_reverse
entity Q200092
relation P136
type Q2342494
action filter_type
action find_reverse
entity Q200092
relation P136
type Q1914636
[ANSWER]
[{'concept': 'Q2342494'}, 'P136', 'Q200092'] [{'concept': 'Q1914636'}, 'P136', 'Q200092'] [{'concept': 'Q2342494'}, 'P136', 'Q200092'] [{'concept': 'Q1914636'}, 'P136', 'Q200092']
SELECT DISTINCT ( COUNT ( ?q ) AS ?u ) WHERE { { ?q rdf:type ontology:Q2342494 . ?q property:P136 resource:Q200092 } UNION { ?q property:P136 resource:Q200092 . ?q rdf:type ontology:Q1914636 } }
Die Blutgräfin The Graveyard Book
2
action count
action union
action filter_type
action find_reverse
entity horror film
relation genre
type collectable
action filter_type
action find_reverse
entity horror film
relation genre
type activity
[{'concept': 'collectable'}, 'genre', 'horror film'] [{'concept': 'activity'}, 'genre', 'horror film'] [{'concept': 'collectable'}, 'genre', 'horror film'] [{'concept': 'activity'}, 'genre', 'horror film']
SELECT DISTINCT ( COUNT ( ?q ) AS ?u ) WHERE { { ?q rdf:type ontology:collectable . ?q property:genre resource:horror_film } UNION { ?q property:genre resource:horror_film . ?q rdf:type ontology:activity } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q6152269 Q318491
P19
Q56061
USER
Which administrative territories were Abel Salazar or Jane Garvey born ?
OR((Q318491,P19,c(Q56061)), (Q6152269,P19,c(Q56061)))
action filter_type
action union
action find
entity Q318491
relation P19
action find
entity Q6152269
relation P19
type Q56061
{'OR': [['Q318491', 'P19', {'concept': 'Q56061'}], ['Q6152269', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Q6152269 property:P19 ?v } UNION { resource:Q318491 property:P19 ?v } } . ?v rdf:type ontology:Q56061 }
Jane Garvey Abel Salazar
action filter_type
action union
action find
entity Abel Salazar
relation place of birth
action find
entity Jane Garvey
relation place of birth
type administrative territorial entity
{'OR': [['Abel Salazar', 'place of birth', {'concept': 'administrative territorial entity'}], ['Jane Garvey', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Jane_Garvey property:place_of_birth ?v } UNION { resource:Abel_Salazar property:place_of_birth ?v } } . ?v rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1141046 Q1489
SYSTEM
Crosby, Mexico City
Q1141046 Q1489
OR((Q318491,P19,c(Q56061)), (Q6152269,P19,c(Q56061)))
action filter_type
action union
action find
entity Q318491
relation P19
action find
entity Q6152269
relation P19
type Q56061
Abel Salazar or Jane Garvey were born in [ANSWERS]
{'OR': [['Q318491', 'P19', {'concept': 'Q56061'}], ['Q6152269', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Q6152269 property:P19 ?v } UNION { resource:Q318491 property:P19 ?v } } . ?v rdf:type ontology:Q56061 }
Crosby Mexico City
Abel Salazar or Jane Garvey were born in Crosby and Mexico City
Crosby Mexico City
action filter_type
action union
action find
entity Abel Salazar
relation place of birth
action find
entity Jane Garvey
relation place of birth
type administrative territorial entity
{'OR': [['Abel Salazar', 'place of birth', {'concept': 'administrative territorial entity'}], ['Jane Garvey', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Jane_Garvey property:place_of_birth ?v } UNION { resource:Abel_Salazar property:place_of_birth ?v } } . ?v rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q3897 Q1489
P190
Q56061
USER
Which administrative territories are the sister cities of Mexico City or Luanda ?
OR((Q1489,P190,c(Q56061)), (Q3897,P190,c(Q56061)))
action filter_type
action union
action find
entity Q1489
relation P190
action find
entity Q3897
relation P190
type Q56061
{'OR': [['Q1489', 'P190', {'concept': 'Q56061'}], ['Q3897', 'P190', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?k WHERE { { VALUES ( ?b ) { ( resource:Q1489 ) ( resource:Q3897 ) } . ?b property:P190 ?k } . ?k rdf:type ontology:Q56061 }
Luanda Mexico City
action filter_type
action union
action find
entity Mexico City
relation sister city
action find
entity Luanda
relation sister city
type administrative territorial entity
{'OR': [['Mexico City', 'sister city', {'concept': 'administrative territorial entity'}], ['Luanda', 'sister city', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?k WHERE { { VALUES ( ?b ) { ( resource:Mexico_City ) ( resource:Luanda ) } . ?b property:sister_city ?k } . ?k rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q65 Q1490 Q172 Q1335 Q597 Q36433 Q3130 Q16555 Q1524 Q35178
SYSTEM
Some of them are Los Angeles, Tokyo, Toronto, Montevideo, Lisbon, Porto, Sydney, Houston, Athens, Kuwait City
Q1754 Q1022 Q35178 Q3889 Q3110 Q3130 Q1297 Q65 Q1829 Q36433 Q34820 Q1524 Q41211 Q1335 Q1563 Q3630 Q3306 Q33935 Q1490 Q5582862 Q85 Q3856 Q406 Q174 Q172 Q2868 Q8678 Q2807 Q597 Q956 Q1555 Q159273 Q64 Q1491 Q3820 Q171632 Q16555
OR((Q1489,P190,c(Q56061)), (Q3897,P190,c(Q56061)))
action filter_type
action union
action find
entity Q1489
relation P190
action find
entity Q3897
relation P190
type Q56061
[ANSWERS] are the sister cities of Mexico City or Luanda
{'OR': [['Q1489', 'P190', {'concept': 'Q56061'}], ['Q3897', 'P190', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?k WHERE { { VALUES ( ?b ) { ( resource:Q1489 ) ( resource:Q3897 ) } . ?b property:P190 ?k } . ?k rdf:type ontology:Q56061 }
Stockholm Stuttgart Kuwait City Maputo San Salvador Sydney Chicago Los Angeles Kaliningrad Porto Santo Domingo Athens San Juan Montevideo Havana Jakarta Panama City Tel Aviv Tokyo Cusco Cairo Nicosia Istanbul São Paulo Toronto Lima Rio de Janeiro Madrid Lisbon Beijing Guatemala City Arequipa Berlin La Paz Beirut Maracaibo Houston
Los Angeles, Tokyo, Toronto, Montevideo, Lisbon, Porto, Sydney, Houston, Athens and Kuwait City are the sister cities of Mexico City or Luanda
Los Angeles Tokyo Toronto Montevideo Lisbon Porto Sydney Houston Athens Kuwait City
action filter_type
action union
action find
entity Mexico City
relation sister city
action find
entity Luanda
relation sister city
type administrative territorial entity
{'OR': [['Mexico City', 'sister city', {'concept': 'administrative territorial entity'}], ['Luanda', 'sister city', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?k WHERE { { VALUES ( ?b ) { ( resource:Mexico_City ) ( resource:Luanda ) } . ?b property:sister_city ?k } . ?k rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q4623525 Q35178
P1376 P17
Q15617994
USER
Which administrative territories have Kuwait City as their county seat or are 2011–12 Copa Federación de España present in ?
OR((Q35178,P1376,c(Q15617994)), (Q4623525,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q35178
relation P1376
action find
entity Q4623525
relation P17
type Q15617994
{'OR': [['Q35178', 'P1376', {'concept': 'Q15617994'}], ['Q4623525', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Q35178 property:P1376 ?b } UNION { resource:Q4623525 property:P17 ?b } } . ?b rdf:type ontology:Q15617994 }
2011–12 Copa Federación de España Kuwait City
action filter_type
action union
action find
entity Kuwait City
relation capital of
action find
entity 2011–12 Copa Federación de España
relation country
type designation for an administrative territorial entity
{'OR': [['Kuwait City', 'capital of', {'concept': 'designation for an administrative territorial entity'}], ['2011–12 Copa Federación de España', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Kuwait_City property:capital_of ?b } UNION { resource:2011–12_Copa_Federación_de_España property:country ?b } } . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q29 Q817
SYSTEM
Spain, Kuwait
Q29 Q817
OR((Q35178,P1376,c(Q15617994)), (Q4623525,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q35178
relation P1376
action find
entity Q4623525
relation P17
type Q15617994
[ANSWERS] have Kuwait City as their county seat or are 2011–12 Copa Federación de España present in
{'OR': [['Q35178', 'P1376', {'concept': 'Q15617994'}], ['Q4623525', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Q35178 property:P1376 ?b } UNION { resource:Q4623525 property:P17 ?b } } . ?b rdf:type ontology:Q15617994 }
Spain Kuwait
Spain and Kuwait have Kuwait City as their county seat or are 2011–12 Copa Federación de España present in
Spain Kuwait
action filter_type
action union
action find
entity Kuwait City
relation capital of
action find
entity 2011–12 Copa Federación de España
relation country
type designation for an administrative territorial entity
{'OR': [['Kuwait City', 'capital of', {'concept': 'designation for an administrative territorial entity'}], ['2011–12 Copa Federación de España', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Kuwait_City property:capital_of ?b } UNION { resource:2011–12_Copa_Federación_de_España property:country ?b } } . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]