Simple Question (Direct)
Simple Question
Q769450
P1412
Q34770
USER
Which language can Angelo Tasca read ?
(Q769450,P1412,c(Q34770))
action filter_type
action find
entity Q769450
relation P1412
type Q34770
['Q769450', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q34770 . resource:Q769450 property:P1412 ?t }
Angelo Tasca
action filter_type
action find
entity Angelo Tasca
relation languages spoken, written or signed
type language
['Angelo Tasca', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:language . resource:Angelo_Tasca property:languages_spoken,_written_or_signed ?t }
[]
language
Q652
SYSTEM
Italian
Q652
(Q769450,P1412,c(Q34770))
action filter_type
action find
entity Q769450
relation P1412
type Q34770
Angelo Tasca can read in [ANSWER]
['Q769450', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q34770 . resource:Q769450 property:P1412 ?t }
Italian
Angelo Tasca can read in Italian
Italian
action filter_type
action find
entity Angelo Tasca
relation languages spoken, written or signed
type language
['Angelo Tasca', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:language . resource:Angelo_Tasca property:languages_spoken,_written_or_signed ?t }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q769450
P102
Q7210356
USER
Which political organization is that person a member of ?
(Q652,P102,c(Q7210356))
action filter_type
action find
entity Q769450
relation P102
type Q7210356
['Q652', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?d WHERE { resource:Q769450 property:P102 ?d . ?d rdf:type ontology:Q7210356 }
Angelo Tasca
action filter_type
action find
entity Angelo Tasca
relation member of political party
type political organization
['Italian', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?d WHERE { resource:Angelo_Tasca property:member_of_political_party ?d . ?d rdf:type ontology:political_organization }
[]
political organization
Q1332068
SYSTEM
French Section of the Workers' International
Q1332068
(Q652,P102,c(Q7210356))
action filter_type
action find
entity Q769450
relation P102
type Q7210356
[ANSWER] is that person a member of
['Q652', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?d WHERE { resource:Q769450 property:P102 ?d . ?d rdf:type ontology:Q7210356 }
French Section of the Workers' International
French Section of the Workers' International is that person a member of
French Section of the Workers' International
action filter_type
action find
entity Angelo Tasca
relation member of political party
type political organization
['Italian', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?d WHERE { resource:Angelo_Tasca property:member_of_political_party ?d . ?d rdf:type ontology:political_organization }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P361
Q7210356 Q7210356
USER
How many political organizations are a component of approximately 4 political organizations ?
(c(Q7210356),P361,c(Q7210356))
action count
action approx
action find_tuple_counts
relation P361
type Q7210356
type Q7210356
value 4
[{'concept': 'Q7210356'}, 'P361', {'concept': 'Q7210356'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?f ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?z ) AS ?m ) WHERE { ?o property:P361 ?z . ?o rdf:type ontology:Q7210356 . ?z rdf:type ontology:Q7210356 } GROUP BY ?o } . FILTER ( ?m = 4 ) }
action count
action approx
action find_tuple_counts
relation part of
type political organization
type political organization
value 4
[{'concept': 'political organization'}, 'part of', {'concept': 'political organization'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?f ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?z ) AS ?m ) WHERE { ?o property:part_of ?z . ?o rdf:type ontology:political_organization . ?z rdf:type ontology:political_organization } GROUP BY ?o } . FILTER ( ?m = 4 ) }
[]
political organization political organization
SYSTEM
1
Q1233269
(c(Q7210356),P361,c(Q7210356))
action count
action approx
action find_tuple_counts
relation P361
type Q7210356
type Q7210356
value 4
[ANSWER]
[{'concept': 'Q7210356'}, 'P361', {'concept': 'Q7210356'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?f ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?z ) AS ?m ) WHERE { ?o property:P361 ?z . ?o rdf:type ontology:Q7210356 . ?z rdf:type ontology:Q7210356 } GROUP BY ?o } . FILTER ( ?m = 4 ) }
Movement for Autonomies
1
action count
action approx
action find_tuple_counts
relation part of
type political organization
type political organization
value 4
[{'concept': 'political organization'}, 'part of', {'concept': 'political organization'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?f ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?z ) AS ?m ) WHERE { ?o property:part_of ?z . ?o rdf:type ontology:political_organization . ?z rdf:type ontology:political_organization } GROUP BY ?o } . FILTER ( ?m = 4 ) }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q4869666 Q769450
P27 P17
Q15617994
USER
Which administrative territories do Angelo Tasca belong to or are Battagram Tehsil a part of ?
OR((Q769450,P27,c(Q15617994)), (Q4869666,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q769450
relation P27
action find
entity Q4869666
relation P17
type Q15617994
{'OR': [['Q769450', 'P27', {'concept': 'Q15617994'}], ['Q4869666', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Q4869666 property:P17 ?c } UNION { resource:Q769450 property:P27 ?c } } . ?c rdf:type ontology:Q15617994 }
Battagram Tehsil Angelo Tasca
action filter_type
action union
action find
entity Angelo Tasca
relation country of citizenship
action find
entity Battagram Tehsil
relation country
type designation for an administrative territorial entity
{'OR': [['Angelo Tasca', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Battagram Tehsil', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Battagram_Tehsil property:country ?c } UNION { resource:Angelo_Tasca property:country_of_citizenship ?c } } . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q843 Q38
SYSTEM
Pakistan, Italy
Q843 Q38
OR((Q769450,P27,c(Q15617994)), (Q4869666,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q769450
relation P27
action find
entity Q4869666
relation P17
type Q15617994
[ANSWERS] Angelo Tasca belong to or are Battagram Tehsil a part of
{'OR': [['Q769450', 'P27', {'concept': 'Q15617994'}], ['Q4869666', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Q4869666 property:P17 ?c } UNION { resource:Q769450 property:P27 ?c } } . ?c rdf:type ontology:Q15617994 }
Pakistan Italy
Pakistan and Italy Angelo Tasca belong to or are Battagram Tehsil a part of
Pakistan Italy
action filter_type
action union
action find
entity Angelo Tasca
relation country of citizenship
action find
entity Battagram Tehsil
relation country
type designation for an administrative territorial entity
{'OR': [['Angelo Tasca', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Battagram Tehsil', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Battagram_Tehsil property:country ?c } UNION { resource:Angelo_Tasca property:country_of_citizenship ?c } } . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q805
P530
Q15617994
USER
Do Yemen have diplomatic associations with those ones ?
(Q805,P530,Q843) (Q805,P530,Q38)
action is_in
entity prev_answer
action find
entity Q805
relation P530
['Q805', 'P530', 'Q843'] ['Q805', 'P530', 'Q38']
ASK WHERE { resource:Q805 property:P530 ?a . VALUES ( ?a ) { ( resource:Q843 ) ( resource:Q38 ) } }
Yemen
action is_in
entity prev_answer
action find
entity Yemen
relation diplomatic relation
['Yemen', 'diplomatic relation', 'Pakistan'] ['Yemen', 'diplomatic relation', 'Italy']
ASK WHERE { resource:Yemen property:diplomatic_relation ?a . VALUES ( ?a ) { ( resource:Pakistan ) ( resource:Italy ) } }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q805,P530,Q843) (Q805,P530,Q38)
action is_in
entity prev_answer
action find
entity Q805
relation P530
[ANSWER]
['Q805', 'P530', 'Q843'] ['Q805', 'P530', 'Q38']
ASK WHERE { resource:Q805 property:P530 ?a . VALUES ( ?a ) { ( resource:Q843 ) ( resource:Q38 ) } }
Yes
action is_in
entity prev_answer
action find
entity Yemen
relation diplomatic relation
['Yemen', 'diplomatic relation', 'Pakistan'] ['Yemen', 'diplomatic relation', 'Italy']
ASK WHERE { resource:Yemen property:diplomatic_relation ?a . VALUES ( ?a ) { ( resource:Pakistan ) ( resource:Italy ) } }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q38 Q40
P530
Q1048835
USER
Does Austria have diplomatic relationships with Italy ?
(Q38,P530,Q40)
action is_in
entity Q40
action find
entity Q38
relation P530
['Q38', 'P530', 'Q40']
ASK WHERE { resource:Q38 property:P530 resource:Q40 }
Italy Austria
action is_in
entity Austria
action find
entity Italy
relation diplomatic relation
['Italy', 'diplomatic relation', 'Austria']
ASK WHERE { resource:Italy property:diplomatic_relation resource:Austria }
[]
political territorial entity
SYSTEM
YES
(Q38,P530,Q40)
action is_in
entity Q40
action find
entity Q38
relation P530
[ANSWER]
['Q38', 'P530', 'Q40']
ASK WHERE { resource:Q38 property:P530 resource:Q40 }
Yes
action is_in
entity Austria
action find
entity Italy
relation diplomatic relation
['Italy', 'diplomatic relation', 'Austria']
ASK WHERE { resource:Italy property:diplomatic_relation resource:Austria }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q1332068 Q546149 Q142
P17
Q15617994
USER
Is French Section of the Workers' International situated in Schönthal and France ?
(Q1332068,P17,Q546149) (Q1332068,P17,Q142)
action is_in
entity Q1332068
action intersection
action find_reverse
entity Q546149
relation P17
action find_reverse
entity Q142
relation P17
['Q1332068', 'P17', 'Q546149'] ['Q1332068', 'P17', 'Q142']
ASK WHERE { resource:Q1332068 property:P17 resource:Q142 . resource:Q1332068 property:P17 resource:Q546149 }
French Section of the Workers' International Schönthal France
action is_in
entity French Section of the Workers' International
action intersection
action find_reverse
entity Schönthal
relation country
action find_reverse
entity France
relation country
["French Section of the Workers' International", 'country', 'Schönthal'] ["French Section of the Workers' International", 'country', 'France']
ASK WHERE { resource:French_Section_of_the_Workers'_International property:country resource:France . resource:French_Section_of_the_Workers'_International property:country resource:Schönthal }
[]
designation for an administrative territorial entity
SYSTEM
NO and YES respectively
(Q1332068,P17,Q546149) (Q1332068,P17,Q142)
action is_in
entity Q1332068
action intersection
action find_reverse
entity Q546149
relation P17
action find_reverse
entity Q142
relation P17
[ANSWER]
['Q1332068', 'P17', 'Q546149'] ['Q1332068', 'P17', 'Q142']
ASK WHERE { resource:Q1332068 property:P17 resource:Q142 . resource:Q1332068 property:P17 resource:Q546149 }
NO and YES respectively
action is_in
entity French Section of the Workers' International
action intersection
action find_reverse
entity Schönthal
relation country
action find_reverse
entity France
relation country
["French Section of the Workers' International", 'country', 'Schönthal'] ["French Section of the Workers' International", 'country', 'France']
ASK WHERE { resource:French_Section_of_the_Workers'_International property:country resource:France . resource:French_Section_of_the_Workers'_International property:country resource:Schönthal }
[]