Simple Question (Direct)
Simple Question
Q9343367
P607
Q198
USER
What battle was Stanisław Wolnowski a part of ?
(Q9343367,P607,c(Q198))
action filter_type
action find
entity Q9343367
relation P607
type Q198
['Q9343367', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q198 . resource:Q9343367 property:P607 ?o }
Stanisław Wolnowski
action filter_type
action find
entity Stanisław Wolnowski
relation conflict
type war
['Stanisław Wolnowski', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:war . resource:Stanisław_Wolnowski property:conflict ?o }
[]
war
Q361
SYSTEM
World War I
Q361
(Q9343367,P607,c(Q198))
action filter_type
action find
entity Q9343367
relation P607
type Q198
What battle was Stanisław Wolnowski a part of
['Q9343367', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q198 . resource:Q9343367 property:P607 ?o }
World War I
What battle was Stanisław Wolnowski a part of
World War I
action filter_type
action find
entity Stanisław Wolnowski
relation conflict
type war
['Stanisław Wolnowski', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:war . resource:Stanisław_Wolnowski property:conflict ?o }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q9343367
P21
Q290
USER
Which sex does that person have ?
(Q361,P21,c(Q290))
action filter_type
action find
entity Q9343367
relation P21
type Q290
['Q361', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?x WHERE { resource:Q9343367 property:P21 ?x . ?x rdf:type ontology:Q290 }
Stanisław Wolnowski
action filter_type
action find
entity Stanisław Wolnowski
relation gender
type sex
['World War I', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?x WHERE { resource:Stanisław_Wolnowski property:gender ?x . ?x rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q361,P21,c(Q290))
action filter_type
action find
entity Q9343367
relation P21
type Q290
That person has a [ANSWER]
['Q361', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?x WHERE { resource:Q9343367 property:P21 ?x . ?x rdf:type ontology:Q290 }
male
That person has a male
male
action filter_type
action find
entity Stanisław Wolnowski
relation gender
type sex
['World War I', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?x WHERE { resource:Stanisław_Wolnowski property:gender ?x . ?x rdf:type ontology:sex }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q6581097 Q17319971
P21
Q502895
USER
Does Spencer McCallum have that sex as the sex ?
(Q17319971,P21,Q6581097)
action is_in
entity Q6581097
action find
entity Q17319971
relation P21
['Q17319971', 'P21', 'Q6581097']
ASK WHERE { resource:Q17319971 property:P21 resource:Q6581097 }
male Spencer McCallum
action is_in
entity male
action find
entity Spencer McCallum
relation gender
['Spencer McCallum', 'gender', 'male']
ASK WHERE { resource:Spencer_McCallum property:gender resource:male }
[]
common name
SYSTEM
YES
(Q17319971,P21,Q6581097)
action is_in
entity Q6581097
action find
entity Q17319971
relation P21
[ANSWER]
['Q17319971', 'P21', 'Q6581097']
ASK WHERE { resource:Q17319971 property:P21 resource:Q6581097 }
Yes
action is_in
entity male
action find
entity Spencer McCallum
relation gender
['Spencer McCallum', 'gender', 'male']
ASK WHERE { resource:Spencer_McCallum property:gender resource:male }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q10748279 Q9343367
P27 P17
Q15617994
USER
Which administrative territories are Stanisław Wolnowski a civilian of or do Châu Điền belong to ?
OR((Q9343367,P27,c(Q15617994)), (Q10748279,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q9343367
relation P27
action find
entity Q10748279
relation P17
type Q15617994
{'OR': [['Q9343367', 'P27', {'concept': 'Q15617994'}], ['Q10748279', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Q9343367 property:P27 ?q } UNION { resource:Q10748279 property:P17 ?q } } . ?q rdf:type ontology:Q15617994 }
Châu Điền Stanisław Wolnowski
action filter_type
action union
action find
entity Stanisław Wolnowski
relation country of citizenship
action find
entity Châu Điền
relation country
type designation for an administrative territorial entity
{'OR': [['Stanisław Wolnowski', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Châu Điền', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Stanisław_Wolnowski property:country_of_citizenship ?q } UNION { resource:Châu_Điền property:country ?q } } . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q36 Q881
SYSTEM
Poland, Vietnam
Q36 Q881
OR((Q9343367,P27,c(Q15617994)), (Q10748279,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q9343367
relation P27
action find
entity Q10748279
relation P17
type Q15617994
[ANSWERS] are Stanisław Wolnowski a civilian of or do Châu Điền belong to
{'OR': [['Q9343367', 'P27', {'concept': 'Q15617994'}], ['Q10748279', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Q9343367 property:P27 ?q } UNION { resource:Q10748279 property:P17 ?q } } . ?q rdf:type ontology:Q15617994 }
Poland Vietnam
Poland and Vietnam are Stanisław Wolnowski a civilian of or do Châu Điền belong to
Poland Vietnam
action filter_type
action union
action find
entity Stanisław Wolnowski
relation country of citizenship
action find
entity Châu Điền
relation country
type designation for an administrative territorial entity
{'OR': [['Stanisław Wolnowski', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Châu Điền', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Stanisław_Wolnowski property:country_of_citizenship ?q } UNION { resource:Châu_Điền property:country ?q } } . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Simple Question|Single Entity|Indirect
Q881
P1532
Q1194951
USER
Who plays for that administrative territory ?
(c(Q1194951),P1532,Q881)
action filter_type
action find_reverse
entity Q881
relation P1532
type Q1194951
[{'concept': 'Q1194951'}, 'P1532', 'Q881']
SELECT DISTINCT ?p WHERE { ?p property:P1532 resource:Q881 . ?p rdf:type ontology:Q1194951 }
Vietnam
action filter_type
action find_reverse
entity Vietnam
relation country for sport
type national sports team
[{'concept': 'national sports team'}, 'country for sport', 'Vietnam']
SELECT DISTINCT ?p WHERE { ?p property:country_for_sport resource:Vietnam . ?p rdf:type ontology:national_sports_team }
[]
national sports team
Clarification for simple ques.
Q881
SYSTEM
Did you mean Vietnam ?
Q36 Q881
(c(Q1194951),P1532,Q36) (c(Q1194951),P1532,Q881)
[ANSWER]
[{'concept': 'Q1194951'}, 'P1532', 'Q36'] [{'concept': 'Q1194951'}, 'P1532', 'Q881']
SELECT DISTINCT ?p WHERE { ?p property:P1532 resource:Q881 . ?p rdf:type ontology:Q1194951 }
Poland Vietnam
Did you mean Vietnam ?
Vietnam
[{'concept': 'national sports team'}, 'country for sport', 'Poland'] [{'concept': 'national sports team'}, 'country for sport', 'Vietnam']
SELECT DISTINCT ?p WHERE { ?p property:country_for_sport resource:Vietnam . ?p rdf:type ontology:national_sports_team }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q1194951),P1532,Q881)
[{'concept': 'Q1194951'}, 'P1532', 'Q881']
[{'concept': 'national sports team'}, 'country for sport', 'Vietnam']
[]
Q270689
SYSTEM
Vietnam national football team
Q270689
(c(Q1194951),P1532,Q881)
action filter_type
action find_reverse
entity Q881
relation P1532
type Q1194951
[ANSWER] plays for that administrative territory
[{'concept': 'Q1194951'}, 'P1532', 'Q881']
SELECT DISTINCT ?p WHERE { ?p property:P1532 resource:Q881 . ?p rdf:type ontology:Q1194951 }
Vietnam national football team
Vietnam national football team plays for that administrative territory
Vietnam national football team
action filter_type
action find_reverse
entity Vietnam
relation country for sport
type national sports team
[{'concept': 'national sports team'}, 'country for sport', 'Vietnam']
SELECT DISTINCT ?p WHERE { ?p property:country_for_sport resource:Vietnam . ?p rdf:type ontology:national_sports_team }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q270689 Q926057
P54
Q502895
USER
Is Nguyen Minh Phuong one of the members of that national sports team ?
(Q926057,P54,Q270689)
action is_in
entity Q270689
action find
entity Q926057
relation P54
['Q926057', 'P54', 'Q270689']
ASK WHERE { resource:Q926057 property:P54 resource:Q270689 }
Vietnam national football team Nguyen Minh Phuong
action is_in
entity Vietnam national football team
action find
entity Nguyen Minh Phuong
relation member of sports team
['Nguyen Minh Phuong', 'member of sports team', 'Vietnam national football team']
ASK WHERE { resource:Nguyen_Minh_Phuong property:member_of_sports_team resource:Vietnam_national_football_team }
[]
common name
SYSTEM
YES
(Q926057,P54,Q270689)
action is_in
entity Q270689
action find
entity Q926057
relation P54
[ANSWER]
['Q926057', 'P54', 'Q270689']
ASK WHERE { resource:Q926057 property:P54 resource:Q270689 }
Yes
action is_in
entity Vietnam national football team
action find
entity Nguyen Minh Phuong
relation member of sports team
['Nguyen Minh Phuong', 'member of sports team', 'Vietnam national football team']
ASK WHERE { resource:Nguyen_Minh_Phuong property:member_of_sports_team resource:Vietnam_national_football_team }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q270689
P466
Q1076486
USER
What is the sports venue occupied by Vietnam national football team ?
(c(Q1076486),P466,Q270689)
action filter_type
action find_reverse
entity Q270689
relation P466
type Q1076486
[{'concept': 'Q1076486'}, 'P466', 'Q270689']
SELECT DISTINCT ?c WHERE { ?c property:P466 resource:Q270689 . ?c rdf:type ontology:Q1076486 }
Vietnam national football team
action filter_type
action find_reverse
entity Vietnam national football team
relation occupant
type sports venue
[{'concept': 'sports venue'}, 'occupant', 'Vietnam national football team']
SELECT DISTINCT ?c WHERE { ?c property:occupant resource:Vietnam_national_football_team . ?c rdf:type ontology:sports_venue }
[]
sports venue
Q1150956
SYSTEM
My Dinh National Stadium
Q1150956
(c(Q1076486),P466,Q270689)
action filter_type
action find_reverse
entity Q270689
relation P466
type Q1076486
The sports venue occupied by Vietnam national football team is the [ANSWER]
[{'concept': 'Q1076486'}, 'P466', 'Q270689']
SELECT DISTINCT ?c WHERE { ?c property:P466 resource:Q270689 . ?c rdf:type ontology:Q1076486 }
My Dinh National Stadium
The sports venue occupied by Vietnam national football team is the My Dinh National Stadium
My Dinh National Stadium
action filter_type
action find_reverse
entity Vietnam national football team
relation occupant
type sports venue
[{'concept': 'sports venue'}, 'occupant', 'Vietnam national football team']
SELECT DISTINCT ?c WHERE { ?c property:occupant resource:Vietnam_national_football_team . ?c rdf:type ontology:sports_venue }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q38 Q270689
P466 P17
Q1076486
USER
Which sports venues are occupied by Vietnam national football team or are present in Italy ?
OR((c(Q1076486),P466,Q270689), (c(Q1076486),P17,Q38))
action filter_type
action union
action find_reverse
entity Q270689
relation P466
action find_reverse
entity Q38
relation P17
type Q1076486
{'OR': [[{'concept': 'Q1076486'}, 'P466', 'Q270689'], [{'concept': 'Q1076486'}, 'P17', 'Q38']]}
SELECT DISTINCT ?d WHERE { { { ?d property:P466 resource:Q270689 } UNION { ?d property:P17 resource:Q38 } } . ?d rdf:type ontology:Q1076486 }
Italy Vietnam national football team
action filter_type
action union
action find_reverse
entity Vietnam national football team
relation occupant
action find_reverse
entity Italy
relation country
type sports venue
{'OR': [[{'concept': 'sports venue'}, 'occupant', 'Vietnam national football team'], [{'concept': 'sports venue'}, 'country', 'Italy']]}
SELECT DISTINCT ?d WHERE { { { ?d property:occupant resource:Vietnam_national_football_team } UNION { ?d property:country resource:Italy } } . ?d rdf:type ontology:sports_venue }
[]
sports venue
Q17639867 Q3967938 Q1457351 Q545495 Q2292113 Q270474 Q549451 Q3967863 Q295687 Q3613304
SYSTEM
Some of them are Y-40, Stadio del Ghiaccio Agorà, Circus of Maxentius, Milan Circo romano, Ski Center Latemar, Stadio Artemio Franchi, Stadio Comunale Mario Battaglini, Stadio Primo Nebiolo, Fonni, Alto Sangro
Q433534 Q3495876 Q1261451 Q3967863 Q7596268 Q2292113 Q21235958 Q3998065 Q295687 Q3967938 Q3677568 Q7596264 Q7596266 Q16608443 Q19654017 Q676074 Q20009366 Q1092967 Q3496272 Q214629 Q1150956 Q1437911 Q16608396 Q3967944 Q17003156 Q270474 Q581672 Q3967785 Q207808 Q1638702 Q4009427 Q3613304 Q1457351 Q3905737 Q17639867 Q1131014 Q159884 Q1456395 Q955286 Q549451 Q1092998 Q21236794 Q82709 Q11305609 Q545495
OR((c(Q1076486),P466,Q270689), (c(Q1076486),P17,Q38))
action filter_type
action union
action find_reverse
entity Q270689
relation P466
action find_reverse
entity Q38
relation P17
type Q1076486
[ANSWERS] are occupied by Vietnam national football team or are present in Italy
{'OR': [[{'concept': 'Q1076486'}, 'P466', 'Q270689'], [{'concept': 'Q1076486'}, 'P17', 'Q38']]}
SELECT DISTINCT ?d WHERE { { { ?d property:P466 resource:Q270689 } UNION { ?d property:P17 resource:Q38 } } . ?d rdf:type ontology:Q1076486 }
Alta Badia Sergio Lanfranchi Stadium Seiser Alm Stadio Primo Nebiolo Stadio Gino Pistoni Ski Center Latemar Fossa Paganica Tre Nevi Fonni Stadio del Ghiaccio Agorà Circolo Tennis Pescara Stadio Comunale Stadio Franco Sensi Stadio di Acquasanta Stadio Giovanni Chiggiato Circus of Nero Stadio dei Pini Circus Flaminius Stadio XXV Aprile Stadio Olimpico di Torino My Dinh National Stadium Foro Italico Stadio Armando Picchi (Jesolo) Stadio di Atletica Stadio Petriana Stadio Artemio Franchi Stadio Luigi Zaffanella Stadium Falcone-Borsellino Circus Maximus Stadio Comunale di Monigo Velodromo Paolo Borsellino Alto Sangro Circus of Maxentius Piscine Le Naiadi Y-40 Capannelle Racecourse Stadio Olimpico Sella Ronda Gennargentu Stadio Comunale Mario Battaglini Circus Varianus Passolanciano-Maielletta Stadio San Paolo San Siro Racecourse Milan Circo romano
Y-40, Stadio del Ghiaccio Agorà, Circus of Maxentius, Milan Circo romano, Ski Center Latemar, Stadio Artemio Franchi, Stadio Comunale Mario Battaglini, Stadio Primo Nebiolo, Fonni and Alto Sangro are occupied by Vietnam national football team or are present in Italy
Y-40 Stadio del Ghiaccio Agorà Circus of Maxentius Milan Circo romano Ski Center Latemar Stadio Artemio Franchi Stadio Comunale Mario Battaglini Stadio Primo Nebiolo Fonni Alto Sangro
action filter_type
action union
action find_reverse
entity Vietnam national football team
relation occupant
action find_reverse
entity Italy
relation country
type sports venue
{'OR': [[{'concept': 'sports venue'}, 'occupant', 'Vietnam national football team'], [{'concept': 'sports venue'}, 'country', 'Italy']]}
SELECT DISTINCT ?d WHERE { { { ?d property:occupant resource:Vietnam_national_football_team } UNION { ?d property:country resource:Italy } } . ?d rdf:type ontology:sports_venue }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q38
P1001
Q4164871 Q14660
USER
How many positions and flags have jurisdiction over Italy ?
(c(Q4164871),P1001,Q38) (c(Q14660),P1001,Q38)
action count
action union
action filter_type
action find_reverse
entity Q38
relation P1001
type Q4164871
action filter_type
action find_reverse
entity Q38
relation P1001
type Q14660
[{'concept': 'Q4164871'}, 'P1001', 'Q38'] [{'concept': 'Q14660'}, 'P1001', 'Q38']
SELECT DISTINCT ( COUNT ( ?a ) AS ?r ) WHERE { { ?a property:P1001 resource:Q38 . ?a rdf:type ontology:Q4164871 } UNION { ?a property:P1001 resource:Q38 . ?a rdf:type ontology:Q14660 } }
Italy
action count
action union
action filter_type
action find_reverse
entity Italy
relation applies to jurisdiction
type position
action filter_type
action find_reverse
entity Italy
relation applies to jurisdiction
type flag
[{'concept': 'position'}, 'applies to jurisdiction', 'Italy'] [{'concept': 'flag'}, 'applies to jurisdiction', 'Italy']
SELECT DISTINCT ( COUNT ( ?a ) AS ?r ) WHERE { { ?a property:applies_to_jurisdiction resource:Italy . ?a rdf:type ontology:position } UNION { ?a property:applies_to_jurisdiction resource:Italy . ?a rdf:type ontology:flag } }
[]
position flag
SYSTEM
5 positions and 1 flags
Q42876 Q3911030 Q3911031 Q3965289 Q25973167 Q25514257
(c(Q4164871),P1001,Q38) (c(Q14660),P1001,Q38)
action count
action union
action filter_type
action find_reverse
entity Q38
relation P1001
type Q4164871
action filter_type
action find_reverse
entity Q38
relation P1001
type Q14660
[ANSWER]
[{'concept': 'Q4164871'}, 'P1001', 'Q38'] [{'concept': 'Q14660'}, 'P1001', 'Q38']
SELECT DISTINCT ( COUNT ( ?a ) AS ?r ) WHERE { { ?a property:P1001 resource:Q38 . ?a rdf:type ontology:Q4164871 } UNION { ?a property:P1001 resource:Q38 . ?a rdf:type ontology:Q14660 } }
Flag of Italy president of Italian region province president Undersecretary to the Presidency of the Council Minister of Justice Minister of Communications
5 positions and 1 flags
action count
action union
action filter_type
action find_reverse
entity Italy
relation applies to jurisdiction
type position
action filter_type
action find_reverse
entity Italy
relation applies to jurisdiction
type flag
[{'concept': 'position'}, 'applies to jurisdiction', 'Italy'] [{'concept': 'flag'}, 'applies to jurisdiction', 'Italy']
SELECT DISTINCT ( COUNT ( ?a ) AS ?r ) WHERE { { ?a property:applies_to_jurisdiction resource:Italy . ?a rdf:type ontology:position } UNION { ?a property:applies_to_jurisdiction resource:Italy . ?a rdf:type ontology:flag } }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q38
P36
Q56061
USER
Which administrative territory is known as the capital of that administrative territory ?
action filter_type
action find
entity Q38
relation P36
type Q56061
SELECT DISTINCT ?h WHERE { resource:Q38 property:P36 ?h . ?h rdf:type ontology:Q56061 }
Italy
action filter_type
action find
entity Italy
relation capital
type administrative territorial entity
SELECT DISTINCT ?h WHERE { resource:Italy property:capital ?h . ?h rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q220
SYSTEM
Rome
Q220
action filter_type
action find
entity Q38
relation P36
type Q56061
[ANSWER] is known as the capital of that administrative territory
SELECT DISTINCT ?h WHERE { resource:Q38 property:P36 ?h . ?h rdf:type ontology:Q56061 }
Rome
Rome is known as the capital of that administrative territory
Rome
action filter_type
action find
entity Italy
relation capital
type administrative territorial entity
SELECT DISTINCT ?h WHERE { resource:Italy property:capital ?h . ?h rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P1071
Q18783400 Q12146012
USER
How many genres of sculpture and underground buildings have that administrative territory as their final place of assembly ?
(c(Q18783400),P1071,Q220) (c(Q12146012),P1071,Q220) (c(Q18783400),P1071,Q220) (c(Q12146012),P1071,Q220)
action count
action union
action filter_type
action find_reverse
entity Q220
relation P1071
type Q18783400
action filter_type
action find_reverse
entity Q220
relation P1071
type Q12146012
[{'concept': 'Q18783400'}, 'P1071', 'Q220'] [{'concept': 'Q12146012'}, 'P1071', 'Q220'] [{'concept': 'Q18783400'}, 'P1071', 'Q220'] [{'concept': 'Q12146012'}, 'P1071', 'Q220']
SELECT DISTINCT ( COUNT ( ?n ) AS ?j ) WHERE { { ?n property:P1071 resource:Q220 . ?n rdf:type ontology:Q12146012 } UNION { ?n property:P1071 resource:Q220 . ?n rdf:type ontology:Q18783400 } }
action count
action union
action filter_type
action find_reverse
entity Rome
relation location of final assembly
type genre of sculpture
action filter_type
action find_reverse
entity Rome
relation location of final assembly
type underground building
[{'concept': 'genre of sculpture'}, 'location of final assembly', 'Rome'] [{'concept': 'underground building'}, 'location of final assembly', 'Rome'] [{'concept': 'genre of sculpture'}, 'location of final assembly', 'Rome'] [{'concept': 'underground building'}, 'location of final assembly', 'Rome']
SELECT DISTINCT ( COUNT ( ?n ) AS ?j ) WHERE { { ?n property:location_of_final_assembly resource:Rome . ?n rdf:type ontology:underground_building } UNION { ?n property:location_of_final_assembly resource:Rome . ?n rdf:type ontology:genre_of_sculpture } }
[]
genre of sculpture underground building
SYSTEM
1 genres of sculpture and 1 underground buildings
Q27031521 Q19328242
(c(Q18783400),P1071,Q220) (c(Q12146012),P1071,Q220) (c(Q18783400),P1071,Q220) (c(Q12146012),P1071,Q220)
action count
action union
action filter_type
action find_reverse
entity Q220
relation P1071
type Q18783400
action filter_type
action find_reverse
entity Q220
relation P1071
type Q12146012
[ANSWER]
[{'concept': 'Q18783400'}, 'P1071', 'Q220'] [{'concept': 'Q12146012'}, 'P1071', 'Q220'] [{'concept': 'Q18783400'}, 'P1071', 'Q220'] [{'concept': 'Q12146012'}, 'P1071', 'Q220']
SELECT DISTINCT ( COUNT ( ?n ) AS ?j ) WHERE { { ?n property:P1071 resource:Q220 . ?n rdf:type ontology:Q12146012 } UNION { ?n property:P1071 resource:Q220 . ?n rdf:type ontology:Q18783400 } }
Theseus defeats the centaur Galleria Pasa
1 genres of sculpture and 1 underground buildings
action count
action union
action filter_type
action find_reverse
entity Rome
relation location of final assembly
type genre of sculpture
action filter_type
action find_reverse
entity Rome
relation location of final assembly
type underground building
[{'concept': 'genre of sculpture'}, 'location of final assembly', 'Rome'] [{'concept': 'underground building'}, 'location of final assembly', 'Rome'] [{'concept': 'genre of sculpture'}, 'location of final assembly', 'Rome'] [{'concept': 'underground building'}, 'location of final assembly', 'Rome']
SELECT DISTINCT ( COUNT ( ?n ) AS ?j ) WHERE { { ?n property:location_of_final_assembly resource:Rome . ?n rdf:type ontology:underground_building } UNION { ?n property:location_of_final_assembly resource:Rome . ?n rdf:type ontology:genre_of_sculpture } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q2388590 Q17639867
P17
Q15617994
USER
Which administrative territories are Y-40 or Pedro Gual, Venezuela a part of ?
OR((Q17639867,P17,c(Q15617994)), (Q2388590,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q17639867
relation P17
action find
entity Q2388590
relation P17
type Q15617994
{'OR': [['Q17639867', 'P17', {'concept': 'Q15617994'}], ['Q2388590', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q15617994 . { VALUES ( ?l ) { ( resource:Q17639867 ) ( resource:Q2388590 ) } . ?l property:P17 ?v } }
Pedro Gual, Venezuela Y-40
action filter_type
action union
action find
entity Y-40
relation country
action find
entity Pedro Gual, Venezuela
relation country
type designation for an administrative territorial entity
{'OR': [['Y-40', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Pedro Gual, Venezuela', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . { VALUES ( ?l ) { ( resource:Y-40 ) ( resource:Pedro_Gual,_Venezuela ) } . ?l property:country ?v } }
[]
designation for an administrative territorial entity
Q38 Q717
SYSTEM
Italy, Venezuela
Q38 Q717
OR((Q17639867,P17,c(Q15617994)), (Q2388590,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q17639867
relation P17
action find
entity Q2388590
relation P17
type Q15617994
[ANSWERS] are Y-40 or Pedro Gual, Venezuela a part of
{'OR': [['Q17639867', 'P17', {'concept': 'Q15617994'}], ['Q2388590', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q15617994 . { VALUES ( ?l ) { ( resource:Q17639867 ) ( resource:Q2388590 ) } . ?l property:P17 ?v } }
Italy Venezuela
Italy and Venezuela are Y-40 or Pedro Gual, Venezuela a part of
Italy Venezuela
action filter_type
action union
action find
entity Y-40
relation country
action find
entity Pedro Gual, Venezuela
relation country
type designation for an administrative territorial entity
{'OR': [['Y-40', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Pedro Gual, Venezuela', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . { VALUES ( ?l ) { ( resource:Y-40 ) ( resource:Pedro_Gual,_Venezuela ) } . ?l property:country ?v } }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q159
P530
Q15617994
USER
Do Russia have diplomatic relations with those ones ?
(Q159,P530,Q38) (Q159,P530,Q717)
action is_in
entity prev_answer
action find
entity Q159
relation P530
['Q159', 'P530', 'Q38'] ['Q159', 'P530', 'Q717']
ASK WHERE { VALUES ( ?p ) { ( resource:Q38 ) ( resource:Q717 ) } . resource:Q159 property:P530 ?p }
Russia
action is_in
entity prev_answer
action find
entity Russia
relation diplomatic relation
['Russia', 'diplomatic relation', 'Italy'] ['Russia', 'diplomatic relation', 'Venezuela']
ASK WHERE { VALUES ( ?p ) { ( resource:Italy ) ( resource:Venezuela ) } . resource:Russia property:diplomatic_relation ?p }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q159,P530,Q38) (Q159,P530,Q717)
action is_in
entity prev_answer
action find
entity Q159
relation P530
[ANSWER]
['Q159', 'P530', 'Q38'] ['Q159', 'P530', 'Q717']
ASK WHERE { VALUES ( ?p ) { ( resource:Q38 ) ( resource:Q717 ) } . resource:Q159 property:P530 ?p }
Yes
action is_in
entity prev_answer
action find
entity Russia
relation diplomatic relation
['Russia', 'diplomatic relation', 'Italy'] ['Russia', 'diplomatic relation', 'Venezuela']
ASK WHERE { VALUES ( ?p ) { ( resource:Italy ) ( resource:Venezuela ) } . resource:Russia property:diplomatic_relation ?p }
[]