Simple Question (Direct)
Simple Question
Q19519255
P102
Q7210356
USER
Which party does Héctor Pedraza Olguín belong to ?
(Q19519255,P102,c(Q7210356))
action filter_type
action find
entity Q19519255
relation P102
type Q7210356
['Q19519255', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?y WHERE { resource:Q19519255 property:P102 ?y . ?y rdf:type ontology:Q7210356 }
Héctor Pedraza Olguín
action filter_type
action find
entity Héctor Pedraza Olguín
relation member of political party
type political organization
['Héctor Pedraza Olguín', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?y WHERE { resource:Héctor_Pedraza_Olguín property:member_of_political_party ?y . ?y rdf:type ontology:political_organization }
[]
political organization
Q682969
SYSTEM
Institutional Revolutionary Party
Q682969
(Q19519255,P102,c(Q7210356))
action filter_type
action find
entity Q19519255
relation P102
type Q7210356
Héctor Pedraza Olguín belongs to [ANSWER]
['Q19519255', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?y WHERE { resource:Q19519255 property:P102 ?y . ?y rdf:type ontology:Q7210356 }
Institutional Revolutionary Party
Héctor Pedraza Olguín belongs to Institutional Revolutionary Party
Institutional Revolutionary Party
action filter_type
action find
entity Héctor Pedraza Olguín
relation member of political party
type political organization
['Héctor Pedraza Olguín', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?y WHERE { resource:Héctor_Pedraza_Olguín property:member_of_political_party ?y . ?y rdf:type ontology:political_organization }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q19519255
P1412
Q34770
USER
Which language can that person understand ?
(Q682969,P1412,c(Q34770))
action filter_type
action find
entity Q19519255
relation P1412
type Q34770
['Q682969', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?h WHERE { resource:Q19519255 property:P1412 ?h . ?h rdf:type ontology:Q34770 }
Héctor Pedraza Olguín
action filter_type
action find
entity Héctor Pedraza Olguín
relation languages spoken, written or signed
type language
['Institutional Revolutionary Party', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?h WHERE { resource:Héctor_Pedraza_Olguín property:languages_spoken,_written_or_signed ?h . ?h rdf:type ontology:language }
[]
language
Q1321
SYSTEM
Spanish
Q1321
(Q682969,P1412,c(Q34770))
action filter_type
action find
entity Q19519255
relation P1412
type Q34770
That person can understand in [ANSWER]
['Q682969', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?h WHERE { resource:Q19519255 property:P1412 ?h . ?h rdf:type ontology:Q34770 }
Spanish
That person can understand in Spanish
Spanish
action filter_type
action find
entity Héctor Pedraza Olguín
relation languages spoken, written or signed
type language
['Institutional Revolutionary Party', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?h WHERE { resource:Héctor_Pedraza_Olguín property:languages_spoken,_written_or_signed ?h . ?h rdf:type ontology:language }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P2439
Q1002697 Q2944660
USER
How many periodical literatures or lexical items have a connection with the language that language ?
(c(Q1002697),P2439,Q1321) (c(Q2944660),P2439,Q1321) (c(Q1002697),P2439,Q1321) (c(Q2944660),P2439,Q1321)
action count
action union
action filter_type
action find_reverse
entity Q1321
relation P2439
type Q1002697
action filter_type
action find_reverse
entity Q1321
relation P2439
type Q2944660
[{'concept': 'Q1002697'}, 'P2439', 'Q1321'] [{'concept': 'Q2944660'}, 'P2439', 'Q1321'] [{'concept': 'Q1002697'}, 'P2439', 'Q1321'] [{'concept': 'Q2944660'}, 'P2439', 'Q1321']
SELECT DISTINCT ( COUNT ( ?s ) AS ?c ) WHERE { { ?s property:P2439 resource:Q1321 . ?s rdf:type ontology:Q1002697 } UNION { ?s rdf:type ontology:Q2944660 . ?s property:P2439 resource:Q1321 } }
action count
action union
action filter_type
action find_reverse
entity Spanish
relation language
type periodical literature
action filter_type
action find_reverse
entity Spanish
relation language
type lexical item
[{'concept': 'periodical literature'}, 'language', 'Spanish'] [{'concept': 'lexical item'}, 'language', 'Spanish'] [{'concept': 'periodical literature'}, 'language', 'Spanish'] [{'concept': 'lexical item'}, 'language', 'Spanish']
SELECT DISTINCT ( COUNT ( ?s ) AS ?c ) WHERE { { ?s property:language resource:Spanish . ?s rdf:type ontology:periodical_literature } UNION { ?s rdf:type ontology:lexical_item . ?s property:language resource:Spanish } }
[]
periodical literature lexical item
SYSTEM
3
Q10827272 Q24575121 Q21381623
(c(Q1002697),P2439,Q1321) (c(Q2944660),P2439,Q1321) (c(Q1002697),P2439,Q1321) (c(Q2944660),P2439,Q1321)
action count
action union
action filter_type
action find_reverse
entity Q1321
relation P2439
type Q1002697
action filter_type
action find_reverse
entity Q1321
relation P2439
type Q2944660
[ANSWER]
[{'concept': 'Q1002697'}, 'P2439', 'Q1321'] [{'concept': 'Q2944660'}, 'P2439', 'Q1321'] [{'concept': 'Q1002697'}, 'P2439', 'Q1321'] [{'concept': 'Q2944660'}, 'P2439', 'Q1321']
SELECT DISTINCT ( COUNT ( ?s ) AS ?c ) WHERE { { ?s property:P2439 resource:Q1321 . ?s rdf:type ontology:Q1002697 } UNION { ?s rdf:type ontology:Q2944660 . ?s property:P2439 resource:Q1321 } }
Ayuntamiento La Correspondencia Médica Gente Vieja
3
action count
action union
action filter_type
action find_reverse
entity Spanish
relation language
type periodical literature
action filter_type
action find_reverse
entity Spanish
relation language
type lexical item
[{'concept': 'periodical literature'}, 'language', 'Spanish'] [{'concept': 'lexical item'}, 'language', 'Spanish'] [{'concept': 'periodical literature'}, 'language', 'Spanish'] [{'concept': 'lexical item'}, 'language', 'Spanish']
SELECT DISTINCT ( COUNT ( ?s ) AS ?c ) WHERE { { ?s property:language resource:Spanish . ?s rdf:type ontology:periodical_literature } UNION { ?s rdf:type ontology:lexical_item . ?s property:language resource:Spanish } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q78882 Q19519255
P27
Q15617994
USER
Which administrative territories do Héctor Pedraza Olguín or István Avar belong to ?
OR((Q19519255,P27,c(Q15617994)), (Q78882,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q19519255
relation P27
action find
entity Q78882
relation P27
type Q15617994
{'OR': [['Q19519255', 'P27', {'concept': 'Q15617994'}], ['Q78882', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q15617994 . { ?z property:P27 ?h . VALUES ( ?z ) { ( resource:Q19519255 ) ( resource:Q78882 ) } } }
István Avar Héctor Pedraza Olguín
action filter_type
action union
action find
entity Héctor Pedraza Olguín
relation country of citizenship
action find
entity István Avar
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Héctor Pedraza Olguín', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['István Avar', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . { ?z property:country_of_citizenship ?h . VALUES ( ?z ) { ( resource:Héctor_Pedraza_Olguín ) ( resource:István_Avar ) } } }
[]
designation for an administrative territorial entity
Q28 Q96
SYSTEM
Hungary, Mexico
Q28 Q96
OR((Q19519255,P27,c(Q15617994)), (Q78882,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q19519255
relation P27
action find
entity Q78882
relation P27
type Q15617994
[ANSWERS] do Héctor Pedraza Olguín or István Avar belong to
{'OR': [['Q19519255', 'P27', {'concept': 'Q15617994'}], ['Q78882', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q15617994 . { ?z property:P27 ?h . VALUES ( ?z ) { ( resource:Q19519255 ) ( resource:Q78882 ) } } }
Hungary Mexico
Hungary and Mexico do Héctor Pedraza Olguín or István Avar belong to
Hungary Mexico
action filter_type
action union
action find
entity Héctor Pedraza Olguín
relation country of citizenship
action find
entity István Avar
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Héctor Pedraza Olguín', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['István Avar', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . { ?z property:country_of_citizenship ?h . VALUES ( ?z ) { ( resource:Héctor_Pedraza_Olguín ) ( resource:István_Avar ) } } }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q207553
P530
Q15617994
USER
Are San Giorgio di Pesaro known to have diplomatic connections with those ones ?
(Q207553,P530,Q28) (Q207553,P530,Q96)
action is_in
entity prev_answer
action find
entity Q207553
relation P530
['Q207553', 'P530', 'Q28'] ['Q207553', 'P530', 'Q96']
ASK WHERE { VALUES ( ?e ) { ( resource:Q28 ) ( resource:Q96 ) } . resource:Q207553 property:P530 ?e }
San Giorgio di Pesaro
action is_in
entity prev_answer
action find
entity San Giorgio di Pesaro
relation diplomatic relation
['San Giorgio di Pesaro', 'diplomatic relation', 'Hungary'] ['San Giorgio di Pesaro', 'diplomatic relation', 'Mexico']
ASK WHERE { VALUES ( ?e ) { ( resource:Hungary ) ( resource:Mexico ) } . resource:San_Giorgio_di_Pesaro property:diplomatic_relation ?e }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q207553,P530,Q28) (Q207553,P530,Q96)
action is_in
entity prev_answer
action find
entity Q207553
relation P530
[ANSWER]
['Q207553', 'P530', 'Q28'] ['Q207553', 'P530', 'Q96']
ASK WHERE { VALUES ( ?e ) { ( resource:Q28 ) ( resource:Q96 ) } . resource:Q207553 property:P530 ?e }
No
action is_in
entity prev_answer
action find
entity San Giorgio di Pesaro
relation diplomatic relation
['San Giorgio di Pesaro', 'diplomatic relation', 'Hungary'] ['San Giorgio di Pesaro', 'diplomatic relation', 'Mexico']
ASK WHERE { VALUES ( ?e ) { ( resource:Hungary ) ( resource:Mexico ) } . resource:San_Giorgio_di_Pesaro property:diplomatic_relation ?e }
[]