Simple Question (Direct)
Simple Question
Q727486
P27
Q15617994
USER
Which administrative territory does Blas Valera belong to ?
(Q727486,P27,c(Q15617994))
action filter_type
action find
entity Q727486
relation P27
type Q15617994
['Q727486', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { resource:Q727486 property:P27 ?v . ?v rdf:type ontology:Q15617994 }
Blas Valera
action filter_type
action find
entity Blas Valera
relation country of citizenship
type designation for an administrative territorial entity
['Blas Valera', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Blas_Valera property:country_of_citizenship ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q419
SYSTEM
Peru
Q419
(Q727486,P27,c(Q15617994))
action filter_type
action find
entity Q727486
relation P27
type Q15617994
Blas Valera belongs to [ANSWER]
['Q727486', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { resource:Q727486 property:P27 ?v . ?v rdf:type ontology:Q15617994 }
Peru
Blas Valera belongs to Peru
Peru
action filter_type
action find
entity Blas Valera
relation country of citizenship
type designation for an administrative territorial entity
['Blas Valera', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Blas_Valera property:country_of_citizenship ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q419
P551
Q502895
USER
Which person dwells at that administrative territory ?
(c(Q502895),P551,Q419)
action filter_type
action find_reverse
entity Q419
relation P551
type Q502895
[{'concept': 'Q502895'}, 'P551', 'Q419']
SELECT DISTINCT ?t WHERE { ?t property:P551 resource:Q419 . ?t rdf:type ontology:Q502895 }
Peru
action filter_type
action find_reverse
entity Peru
relation residence
type common name
[{'concept': 'common name'}, 'residence', 'Peru']
SELECT DISTINCT ?t WHERE { ?t property:residence resource:Peru . ?t rdf:type ontology:common_name }
[]
common name
Q16651616
SYSTEM
Álvaro González
Q16651616
(c(Q502895),P551,Q419)
action filter_type
action find_reverse
entity Q419
relation P551
type Q502895
[ANSWER] dwells at that administrative territory
[{'concept': 'Q502895'}, 'P551', 'Q419']
SELECT DISTINCT ?t WHERE { ?t property:P551 resource:Q419 . ?t rdf:type ontology:Q502895 }
Álvaro González
Álvaro González dwells at that administrative territory
Álvaro González
action filter_type
action find_reverse
entity Peru
relation residence
type common name
[{'concept': 'common name'}, 'residence', 'Peru']
SELECT DISTINCT ?t WHERE { ?t property:residence resource:Peru . ?t rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q16651616 Q138777 Q419
P27
Q15617994
USER
Is that person a citizen of Zehna and Peru ?
(Q16651616,P27,Q138777) (Q16651616,P27,Q419)
action is_in
entity Q16651616
action intersection
action find_reverse
entity Q138777
relation P27
action find_reverse
entity Q419
relation P27
['Q16651616', 'P27', 'Q138777'] ['Q16651616', 'P27', 'Q419']
ASK WHERE { resource:Q16651616 property:P27 resource:Q138777 . resource:Q16651616 property:P27 resource:Q419 }
Álvaro González Zehna Peru
action is_in
entity Álvaro González
action intersection
action find_reverse
entity Zehna
relation country of citizenship
action find_reverse
entity Peru
relation country of citizenship
['Álvaro González', 'country of citizenship', 'Zehna'] ['Álvaro González', 'country of citizenship', 'Peru']
ASK WHERE { resource:Álvaro_González property:country_of_citizenship resource:Zehna . resource:Álvaro_González property:country_of_citizenship resource:Peru }
[]
designation for an administrative territorial entity
SYSTEM
NO and YES respectively
(Q16651616,P27,Q138777) (Q16651616,P27,Q419)
action is_in
entity Q16651616
action intersection
action find_reverse
entity Q138777
relation P27
action find_reverse
entity Q419
relation P27
[ANSWER]
['Q16651616', 'P27', 'Q138777'] ['Q16651616', 'P27', 'Q419']
ASK WHERE { resource:Q16651616 property:P27 resource:Q138777 . resource:Q16651616 property:P27 resource:Q419 }
NO and YES respectively
action is_in
entity Álvaro González
action intersection
action find_reverse
entity Zehna
relation country of citizenship
action find_reverse
entity Peru
relation country of citizenship
['Álvaro González', 'country of citizenship', 'Zehna'] ['Álvaro González', 'country of citizenship', 'Peru']
ASK WHERE { resource:Álvaro_González property:country_of_citizenship resource:Zehna . resource:Álvaro_González property:country_of_citizenship resource:Peru }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q419 Q82236 Q160255
P163
Q14660
USER
Is Peru associated with Flag of Azerbaijan and flag of Peru ?
(Q419,P163,Q82236) (Q419,P163,Q160255)
action is_in
entity Q419
action intersection
action find_reverse
entity Q82236
relation P163
action find_reverse
entity Q160255
relation P163
['Q419', 'P163', 'Q82236'] ['Q419', 'P163', 'Q160255']
ASK WHERE { resource:Q419 property:P163 resource:Q82236 . resource:Q419 property:P163 resource:Q160255 }
Peru Flag of Azerbaijan flag of Peru
action is_in
entity Peru
action intersection
action find_reverse
entity Flag of Azerbaijan
relation flag
action find_reverse
entity flag of Peru
relation flag
['Peru', 'flag', 'Flag of Azerbaijan'] ['Peru', 'flag', 'flag of Peru']
ASK WHERE { resource:Peru property:flag resource:Flag_of_Azerbaijan . resource:Peru property:flag resource:flag_of_Peru }
[]
flag
SYSTEM
NO and YES respectively
(Q419,P163,Q82236) (Q419,P163,Q160255)
action is_in
entity Q419
action intersection
action find_reverse
entity Q82236
relation P163
action find_reverse
entity Q160255
relation P163
[ANSWER]
['Q419', 'P163', 'Q82236'] ['Q419', 'P163', 'Q160255']
ASK WHERE { resource:Q419 property:P163 resource:Q82236 . resource:Q419 property:P163 resource:Q160255 }
NO and YES respectively
action is_in
entity Peru
action intersection
action find_reverse
entity Flag of Azerbaijan
relation flag
action find_reverse
entity flag of Peru
relation flag
['Peru', 'flag', 'Flag of Azerbaijan'] ['Peru', 'flag', 'flag of Peru']
ASK WHERE { resource:Peru property:flag resource:Flag_of_Azerbaijan . resource:Peru property:flag resource:flag_of_Peru }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q727486 Q11244080
P20
Q56061
USER
Did Blas Valera expire Galminiai ?
(Q727486,P20,Q11244080)
action is_in
entity Q11244080
action find
entity Q727486
relation P20
['Q727486', 'P20', 'Q11244080']
ASK WHERE { resource:Q727486 property:P20 resource:Q11244080 }
Blas Valera Galminiai
action is_in
entity Galminiai
action find
entity Blas Valera
relation place of death
['Blas Valera', 'place of death', 'Galminiai']
ASK WHERE { resource:Blas_Valera property:place_of_death resource:Galminiai }
[]
administrative territorial entity
SYSTEM
NO
(Q727486,P20,Q11244080)
action is_in
entity Q11244080
action find
entity Q727486
relation P20
[ANSWER]
['Q727486', 'P20', 'Q11244080']
ASK WHERE { resource:Q727486 property:P20 resource:Q11244080 }
No
action is_in
entity Galminiai
action find
entity Blas Valera
relation place of death
['Blas Valera', 'place of death', 'Galminiai']
ASK WHERE { resource:Blas_Valera property:place_of_death resource:Galminiai }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P138
Q15617994 Q355304 Q79529
USER
How many administrative territories are around 1 watercourses or chemical substances named after ?
(c(Q355304)|c(Q79529),P138,c(Q15617994))
action count
action approx
action union
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q355304
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q79529
value 1
[[{'concept': 'Q355304'}, {'concept': 'Q79529'}], 'P138', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?v ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?c ) AS ?b ) WHERE { VALUES ( ?d ) { ( ontology:Q355304 ) ( ontology:Q79529 ) } . ?c rdf:type ?d } GROUP BY ?j } . FILTER ( ?b = 1 ) }
action count
action approx
action union
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type watercourse
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type chemical substance
value 1
[[{'concept': 'watercourse'}, {'concept': 'chemical substance'}], 'named after', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?v ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?c ) AS ?b ) WHERE { VALUES ( ?d ) { ( ontology:watercourse ) ( ontology:chemical_substance ) } . ?c rdf:type ?d } GROUP BY ?j } . FILTER ( ?b = 1 ) }
[]
designation for an administrative territorial entity watercourse chemical substance
SYSTEM
7
Q11340 Q36 Q3139 Q40131 Q142 Q971 Q243337
(c(Q355304)|c(Q79529),P138,c(Q15617994))
action count
action approx
action union
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q355304
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q79529
value 1
[ANSWER]
[[{'concept': 'Q355304'}, {'concept': 'Q79529'}], 'P138', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?v ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?c ) AS ?b ) WHERE { VALUES ( ?d ) { ( ontology:Q355304 ) ( ontology:Q79529 ) } . ?c rdf:type ?d } GROUP BY ?j } . FILTER ( ?b = 1 ) }
Sprockhövel Poland Alpes-Maritimes Chiavenna France Republic of the Congo Issum
7
action count
action approx
action union
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type watercourse
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type chemical substance
value 1
[[{'concept': 'watercourse'}, {'concept': 'chemical substance'}], 'named after', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?v ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?c ) AS ?b ) WHERE { VALUES ( ?d ) { ( ontology:watercourse ) ( ontology:chemical_substance ) } . ?c rdf:type ?d } GROUP BY ?j } . FILTER ( ?b = 1 ) }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q183 Q160255
P530 P163
Q15617994
USER
Which administrative territories can be described by flag of Peru and have ambassadorial relations with Germany ?
AND((c(Q15617994),P163,Q160255), (c(Q15617994),P530,Q183))
action filter_type
action intersection
action find_reverse
entity Q160255
relation P163
action find_reverse
entity Q183
relation P530
type Q15617994
{'AND': [[{'concept': 'Q15617994'}, 'P163', 'Q160255'], [{'concept': 'Q15617994'}, 'P530', 'Q183']]}
SELECT DISTINCT ?l WHERE { ?l property:P163 resource:Q160255 . ?l property:P530 resource:Q183 . ?l rdf:type ontology:Q15617994 }
Germany flag of Peru
action filter_type
action intersection
action find_reverse
entity flag of Peru
relation flag
action find_reverse
entity Germany
relation diplomatic relation
type designation for an administrative territorial entity
{'AND': [[{'concept': 'designation for an administrative territorial entity'}, 'flag', 'flag of Peru'], [{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Germany']]}
SELECT DISTINCT ?l WHERE { ?l property:flag resource:flag_of_Peru . ?l property:diplomatic_relation resource:Germany . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q419
SYSTEM
Peru
Q419
AND((c(Q15617994),P163,Q160255), (c(Q15617994),P530,Q183))
action filter_type
action intersection
action find_reverse
entity Q160255
relation P163
action find_reverse
entity Q183
relation P530
type Q15617994
[ANSWER] can be described by flag of [ANSWER] and have ambassadorial relations with Germany
{'AND': [[{'concept': 'Q15617994'}, 'P163', 'Q160255'], [{'concept': 'Q15617994'}, 'P530', 'Q183']]}
SELECT DISTINCT ?l WHERE { ?l property:P163 resource:Q160255 . ?l property:P530 resource:Q183 . ?l rdf:type ontology:Q15617994 }
Peru
Peru can be described by flag of Peru and have ambassadorial relations with Germany
Peru
action filter_type
action intersection
action find_reverse
entity flag of Peru
relation flag
action find_reverse
entity Germany
relation diplomatic relation
type designation for an administrative territorial entity
{'AND': [[{'concept': 'designation for an administrative territorial entity'}, 'flag', 'flag of Peru'], [{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Germany']]}
SELECT DISTINCT ?l WHERE { ?l property:flag resource:flag_of_Peru . ?l property:diplomatic_relation resource:Germany . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q419 Q17110810
P530
Q15617994
USER
Does Union Area School District hold diplomatic relationship with that one ?
(Q419,P530,Q17110810)
action is_in
entity Q17110810
action find
entity Q419
relation P530
['Q419', 'P530', 'Q17110810']
ASK WHERE { resource:Q419 property:P530 resource:Q17110810 }
Peru Union Area School District
action is_in
entity Union Area School District
action find
entity Peru
relation diplomatic relation
['Peru', 'diplomatic relation', 'Union Area School District']
ASK WHERE { resource:Peru property:diplomatic_relation resource:Union_Area_School_District }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q419,P530,Q17110810)
action is_in
entity Q17110810
action find
entity Q419
relation P530
[ANSWER]
['Q419', 'P530', 'Q17110810']
ASK WHERE { resource:Q419 property:P530 resource:Q17110810 }
No
action is_in
entity Union Area School District
action find
entity Peru
relation diplomatic relation
['Peru', 'diplomatic relation', 'Union Area School District']
ASK WHERE { resource:Peru property:diplomatic_relation resource:Union_Area_School_District }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q40 Q419
P27
Q502895
USER
Which people are a native of Peru and Austria ?
AND((c(Q502895),P27,Q419), (c(Q502895),P27,Q40))
action filter_type
action intersection
action find_reverse
entity Q419
relation P27
action find_reverse
entity Q40
relation P27
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P27', 'Q419'], [{'concept': 'Q502895'}, 'P27', 'Q40']]}
SELECT DISTINCT ?o WHERE { ?o property:P27 resource:Q419 . ?o property:P27 resource:Q40 . ?o rdf:type ontology:Q502895 }
Austria Peru
action filter_type
action intersection
action find_reverse
entity Peru
relation country of citizenship
action find_reverse
entity Austria
relation country of citizenship
type common name
{'AND': [[{'concept': 'common name'}, 'country of citizenship', 'Peru'], [{'concept': 'common name'}, 'country of citizenship', 'Austria']]}
SELECT DISTINCT ?o WHERE { ?o property:country_of_citizenship resource:Peru . ?o property:country_of_citizenship resource:Austria . ?o rdf:type ontology:common_name }
[]
common name
Q88777 Q991044
SYSTEM
Adolfo Winternitz, Erwin Hieger
Q88777 Q991044
AND((c(Q502895),P27,Q419), (c(Q502895),P27,Q40))
action filter_type
action intersection
action find_reverse
entity Q419
relation P27
action find_reverse
entity Q40
relation P27
type Q502895
[ANSWERS] are a native of Peru and Austria
{'AND': [[{'concept': 'Q502895'}, 'P27', 'Q419'], [{'concept': 'Q502895'}, 'P27', 'Q40']]}
SELECT DISTINCT ?o WHERE { ?o property:P27 resource:Q419 . ?o property:P27 resource:Q40 . ?o rdf:type ontology:Q502895 }
Adolfo Winternitz Erwin Hieger
Adolfo Winternitz and Erwin Hieger are a native of Peru and Austria
Adolfo Winternitz Erwin Hieger
action filter_type
action intersection
action find_reverse
entity Peru
relation country of citizenship
action find_reverse
entity Austria
relation country of citizenship
type common name
{'AND': [[{'concept': 'common name'}, 'country of citizenship', 'Peru'], [{'concept': 'common name'}, 'country of citizenship', 'Austria']]}
SELECT DISTINCT ?o WHERE { ?o property:country_of_citizenship resource:Peru . ?o property:country_of_citizenship resource:Austria . ?o rdf:type ontology:common_name }
[]