Simple Question (Direct)
Simple Question
Q860997
P102
Q7210356
USER
Which party is José Pedro Montero affiliated with ?
(Q860997,P102,c(Q7210356))
action filter_type
action find
entity Q860997
relation P102
type Q7210356
['Q860997', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?v WHERE { resource:Q860997 property:P102 ?v . ?v rdf:type ontology:Q7210356 }
José Pedro Montero
action filter_type
action find
entity José Pedro Montero
relation member of political party
type political organization
['José Pedro Montero', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?v WHERE { resource:José_Pedro_Montero property:member_of_political_party ?v . ?v rdf:type ontology:political_organization }
[]
political organization
Q2735114
SYSTEM
Authentic Radical Liberal Party
Q2735114
(Q860997,P102,c(Q7210356))
action filter_type
action find
entity Q860997
relation P102
type Q7210356
José Pedro Montero is affiliated with [ANSWER]
['Q860997', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?v WHERE { resource:Q860997 property:P102 ?v . ?v rdf:type ontology:Q7210356 }
Authentic Radical Liberal Party
José Pedro Montero is affiliated with Authentic Radical Liberal Party
Authentic Radical Liberal Party
action filter_type
action find
entity José Pedro Montero
relation member of political party
type political organization
['José Pedro Montero', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?v WHERE { resource:José_Pedro_Montero property:member_of_political_party ?v . ?v rdf:type ontology:political_organization }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q860997
P20
Q13220204
USER
Where did José Pedro Montero expire ?
(Q860997,P20,c(Q13220204))
action filter_type
action find
entity Q860997
relation P20
type Q13220204
['Q860997', 'P20', {'concept': 'Q13220204'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q13220204 . resource:Q860997 property:P20 ?q }
José Pedro Montero
action filter_type
action find
entity José Pedro Montero
relation place of death
type second-level administrative country subdivision
['José Pedro Montero', 'place of death', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:second-level_administrative_country_subdivision . resource:José_Pedro_Montero property:place_of_death ?q }
[]
second-level administrative country subdivision
Q2933
SYSTEM
Asunción
Q2933
(Q860997,P20,c(Q13220204))
action filter_type
action find
entity Q860997
relation P20
type Q13220204
José Pedro Montero expired in [ANSWER]
['Q860997', 'P20', {'concept': 'Q13220204'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q13220204 . resource:Q860997 property:P20 ?q }
Asunción
José Pedro Montero expired in Asunción
Asunción
action filter_type
action find
entity José Pedro Montero
relation place of death
type second-level administrative country subdivision
['José Pedro Montero', 'place of death', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:second-level_administrative_country_subdivision . resource:José_Pedro_Montero property:place_of_death ?q }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Indirect
P159
Q13220204 Q895526 Q28640
USER
How many administrative country subdivisions are the headquarter locations of greater number of authority organs and professions than that administrative country subdivision ?
(c(Q895526)|c(Q28640),P159,c(Q13220204))
action count
action greater
action union
action find_reverse_tuple_counts
relation P159
type Q13220204
type Q895526
action find_reverse_tuple_counts
relation P159
type Q13220204
type Q28640
action count
action filter_multi_types
action find_reverse
entity Q2933
relation P159
type Q895526
type Q28640
[[{'concept': 'Q895526'}, {'concept': 'Q28640'}], 'P159', {'concept': 'Q13220204'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?h ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?e ) ?k WHERE { ?d rdf:type ?x . VALUES ( ?x ) { ( ontology:Q895526 ) ( ontology:Q28640 ) } } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?p ) WHERE { ?z property:P159 resource:Q2933 . { { ?z rdf:type ontology:Q895526 } UNION { ?z rdf:type ontology:Q28640 } } } } . FILTER ( ?e > ?p ) }
action count
action greater
action union
action find_reverse_tuple_counts
relation headquarters location
type second-level administrative country subdivision
type authority organ
action find_reverse_tuple_counts
relation headquarters location
type second-level administrative country subdivision
type profession
action count
action filter_multi_types
action find_reverse
entity Asunción
relation headquarters location
type authority organ
type profession
[[{'concept': 'authority organ'}, {'concept': 'profession'}], 'headquarters location', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?h ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?e ) ?k WHERE { ?d rdf:type ?x . VALUES ( ?x ) { ( ontology:authority_organ ) ( ontology:profession ) } } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?p ) WHERE { ?z property:headquarters_location resource:Asunción . { { ?z rdf:type ontology:authority_organ } UNION { ?z rdf:type ontology:profession } } } } . FILTER ( ?e > ?p ) }
[]
second-level administrative country subdivision authority organ profession
SYSTEM
13
Q57076 Q160584 Q107392 Q7903 Q39383 Q476330 Q104095 Q488948 Q109036 Q1435 Q145845 Q2841 Q90593
(c(Q895526)|c(Q28640),P159,c(Q13220204))
action count
action greater
action union
action find_reverse_tuple_counts
relation P159
type Q13220204
type Q895526
action find_reverse_tuple_counts
relation P159
type Q13220204
type Q28640
action count
action filter_multi_types
action find_reverse
entity Q2933
relation P159
type Q895526
type Q28640
[ANSWER]
[[{'concept': 'Q895526'}, {'concept': 'Q28640'}], 'P159', {'concept': 'Q13220204'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?h ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?e ) ?k WHERE { ?d rdf:type ?x . VALUES ( ?x ) { ( ontology:Q895526 ) ( ontology:Q28640 ) } } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?p ) WHERE { ?z property:P159 resource:Q2933 . { { ?z rdf:type ontology:Q895526 } UNION { ?z rdf:type ontology:Q28640 } } } } . FILTER ( ?e > ?p ) }
Bærum Sievierodonetsk Tønsberg Casablanca Bodø Pak Kret Molde Sola Haugesund Zagreb Doetinchem Bogotá Lillesand
13
action count
action greater
action union
action find_reverse_tuple_counts
relation headquarters location
type second-level administrative country subdivision
type authority organ
action find_reverse_tuple_counts
relation headquarters location
type second-level administrative country subdivision
type profession
action count
action filter_multi_types
action find_reverse
entity Asunción
relation headquarters location
type authority organ
type profession
[[{'concept': 'authority organ'}, {'concept': 'profession'}], 'headquarters location', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?h ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?e ) ?k WHERE { ?d rdf:type ?x . VALUES ( ?x ) { ( ontology:authority_organ ) ( ontology:profession ) } } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?p ) WHERE { ?z property:headquarters_location resource:Asunción . { { ?z rdf:type ontology:authority_organ } UNION { ?z rdf:type ontology:profession } } } } . FILTER ( ?e > ?p ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q18388203 Q860997
P19
Q13220204
USER
Which administrative country subdivisions were José Pedro Montero or David Silberman born in ?
OR((Q860997,P19,c(Q13220204)), (Q18388203,P19,c(Q13220204)))
action filter_type
action union
action find
entity Q860997
relation P19
action find
entity Q18388203
relation P19
type Q13220204
{'OR': [['Q860997', 'P19', {'concept': 'Q13220204'}], ['Q18388203', 'P19', {'concept': 'Q13220204'}]]}
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q13220204 . { ?z property:P19 ?n . VALUES ( ?z ) { ( resource:Q18388203 ) ( resource:Q860997 ) } } }
David Silberman José Pedro Montero
action filter_type
action union
action find
entity José Pedro Montero
relation place of birth
action find
entity David Silberman
relation place of birth
type second-level administrative country subdivision
{'OR': [['José Pedro Montero', 'place of birth', {'concept': 'second-level administrative country subdivision'}], ['David Silberman', 'place of birth', {'concept': 'second-level administrative country subdivision'}]]}
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:second-level_administrative_country_subdivision . { ?z property:place_of_birth ?n . VALUES ( ?z ) { ( resource:David_Silberman ) ( resource:José_Pedro_Montero ) } } }
[]
second-level administrative country subdivision
Q2933 Q858476
SYSTEM
Asunción, Preiļi
Q2933 Q858476
OR((Q860997,P19,c(Q13220204)), (Q18388203,P19,c(Q13220204)))
action filter_type
action union
action find
entity Q860997
relation P19
action find
entity Q18388203
relation P19
type Q13220204
[ANSWERS] were José Pedro Montero or David Silberman born in
{'OR': [['Q860997', 'P19', {'concept': 'Q13220204'}], ['Q18388203', 'P19', {'concept': 'Q13220204'}]]}
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q13220204 . { ?z property:P19 ?n . VALUES ( ?z ) { ( resource:Q18388203 ) ( resource:Q860997 ) } } }
Asunción Preiļi
Asunción and Preiļi were José Pedro Montero or David Silberman born in
Asunción Preiļi
action filter_type
action union
action find
entity José Pedro Montero
relation place of birth
action find
entity David Silberman
relation place of birth
type second-level administrative country subdivision
{'OR': [['José Pedro Montero', 'place of birth', {'concept': 'second-level administrative country subdivision'}], ['David Silberman', 'place of birth', {'concept': 'second-level administrative country subdivision'}]]}
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:second-level_administrative_country_subdivision . { ?z property:place_of_birth ?n . VALUES ( ?z ) { ( resource:David_Silberman ) ( resource:José_Pedro_Montero ) } } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q18719331 Q860997
P27
Q15617994
USER
Which administrative territories do José Pedro Montero or Pierre Castel belong to ?
OR((Q860997,P27,c(Q15617994)), (Q18719331,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q860997
relation P27
action find
entity Q18719331
relation P27
type Q15617994
{'OR': [['Q860997', 'P27', {'concept': 'Q15617994'}], ['Q18719331', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q15617994 . { { resource:Q18719331 property:P27 ?o } UNION { resource:Q860997 property:P27 ?o } } }
Pierre Castel José Pedro Montero
action filter_type
action union
action find
entity José Pedro Montero
relation country of citizenship
action find
entity Pierre Castel
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['José Pedro Montero', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Pierre Castel', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Pierre_Castel property:country_of_citizenship ?o } UNION { resource:José_Pedro_Montero property:country_of_citizenship ?o } } }
[]
designation for an administrative territorial entity
Q142 Q733
SYSTEM
France, Paraguay
Q142 Q733
OR((Q860997,P27,c(Q15617994)), (Q18719331,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q860997
relation P27
action find
entity Q18719331
relation P27
type Q15617994
José Pedro Montero or Pierre Castel belong to [ANSWERS]
{'OR': [['Q860997', 'P27', {'concept': 'Q15617994'}], ['Q18719331', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q15617994 . { { resource:Q18719331 property:P27 ?o } UNION { resource:Q860997 property:P27 ?o } } }
France Paraguay
José Pedro Montero or Pierre Castel belong to France and Paraguay
France Paraguay
action filter_type
action union
action find
entity José Pedro Montero
relation country of citizenship
action find
entity Pierre Castel
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['José Pedro Montero', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Pierre Castel', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Pierre_Castel property:country_of_citizenship ?o } UNION { resource:José_Pedro_Montero property:country_of_citizenship ?o } } }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q155
P530
Q15617994
USER
Do Brazil have diplomatic relations with those ones ?
(Q155,P530,Q142) (Q155,P530,Q733)
action is_in
entity prev_answer
action find
entity Q155
relation P530
['Q155', 'P530', 'Q142'] ['Q155', 'P530', 'Q733']
ASK WHERE { VALUES ( ?n ) { ( resource:Q142 ) ( resource:Q733 ) } . resource:Q155 property:P530 ?n }
Brazil
action is_in
entity prev_answer
action find
entity Brazil
relation diplomatic relation
['Brazil', 'diplomatic relation', 'France'] ['Brazil', 'diplomatic relation', 'Paraguay']
ASK WHERE { VALUES ( ?n ) { ( resource:France ) ( resource:Paraguay ) } . resource:Brazil property:diplomatic_relation ?n }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q155,P530,Q142) (Q155,P530,Q733)
action is_in
entity prev_answer
action find
entity Q155
relation P530
[ANSWER]
['Q155', 'P530', 'Q142'] ['Q155', 'P530', 'Q733']
ASK WHERE { VALUES ( ?n ) { ( resource:Q142 ) ( resource:Q733 ) } . resource:Q155 property:P530 ?n }
Yes
action is_in
entity prev_answer
action find
entity Brazil
relation diplomatic relation
['Brazil', 'diplomatic relation', 'France'] ['Brazil', 'diplomatic relation', 'Paraguay']
ASK WHERE { VALUES ( ?n ) { ( resource:France ) ( resource:Paraguay ) } . resource:Brazil property:diplomatic_relation ?n }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q2735114 Q17829 Q733
P17
Q15617994
USER
Is Authentic Radical Liberal Party located in Mongardino and Paraguay ?
(Q2735114,P17,Q17829) (Q2735114,P17,Q733)
action is_in
entity Q2735114
action intersection
action find_reverse
entity Q17829
relation P17
action find_reverse
entity Q733
relation P17
['Q2735114', 'P17', 'Q17829'] ['Q2735114', 'P17', 'Q733']
ASK WHERE { resource:Q2735114 property:P17 resource:Q733 . resource:Q2735114 property:P17 resource:Q17829 }
Authentic Radical Liberal Party Mongardino Paraguay
action is_in
entity Authentic Radical Liberal Party
action intersection
action find_reverse
entity Mongardino
relation country
action find_reverse
entity Paraguay
relation country
['Authentic Radical Liberal Party', 'country', 'Mongardino'] ['Authentic Radical Liberal Party', 'country', 'Paraguay']
ASK WHERE { resource:Authentic_Radical_Liberal_Party property:country resource:Paraguay . resource:Authentic_Radical_Liberal_Party property:country resource:Mongardino }
[]
designation for an administrative territorial entity
SYSTEM
NO and YES respectively
(Q2735114,P17,Q17829) (Q2735114,P17,Q733)
action is_in
entity Q2735114
action intersection
action find_reverse
entity Q17829
relation P17
action find_reverse
entity Q733
relation P17
[ANSWER]
['Q2735114', 'P17', 'Q17829'] ['Q2735114', 'P17', 'Q733']
ASK WHERE { resource:Q2735114 property:P17 resource:Q733 . resource:Q2735114 property:P17 resource:Q17829 }
NO and YES respectively
action is_in
entity Authentic Radical Liberal Party
action intersection
action find_reverse
entity Mongardino
relation country
action find_reverse
entity Paraguay
relation country
['Authentic Radical Liberal Party', 'country', 'Mongardino'] ['Authentic Radical Liberal Party', 'country', 'Paraguay']
ASK WHERE { resource:Authentic_Radical_Liberal_Party property:country resource:Paraguay . resource:Authentic_Radical_Liberal_Party property:country resource:Mongardino }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q860997 Q1133252
P27
Q15617994
USER
Does José Pedro Montero belong to Conyngham ?
(Q860997,P27,Q1133252)
action is_in
entity Q1133252
action find
entity Q860997
relation P27
['Q860997', 'P27', 'Q1133252']
ASK WHERE { resource:Q860997 property:P27 resource:Q1133252 }
José Pedro Montero Conyngham
action is_in
entity Conyngham
action find
entity José Pedro Montero
relation country of citizenship
['José Pedro Montero', 'country of citizenship', 'Conyngham']
ASK WHERE { resource:José_Pedro_Montero property:country_of_citizenship resource:Conyngham }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q860997,P27,Q1133252)
action is_in
entity Q1133252
action find
entity Q860997
relation P27
[ANSWER]
['Q860997', 'P27', 'Q1133252']
ASK WHERE { resource:Q860997 property:P27 resource:Q1133252 }
No
action is_in
entity Conyngham
action find
entity José Pedro Montero
relation country of citizenship
['José Pedro Montero', 'country of citizenship', 'Conyngham']
ASK WHERE { resource:José_Pedro_Montero property:country_of_citizenship resource:Conyngham }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q860997
P21
Q290
USER
Which sex does that person belong to ?
action filter_type
action find
entity Q860997
relation P21
type Q290
SELECT DISTINCT ?b WHERE { resource:Q860997 property:P21 ?b . ?b rdf:type ontology:Q290 }
José Pedro Montero
action filter_type
action find
entity José Pedro Montero
relation gender
type sex
SELECT DISTINCT ?b WHERE { resource:José_Pedro_Montero property:gender ?b . ?b rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
action filter_type
action find
entity Q860997
relation P21
type Q290
That person belongs to [ANSWER]
SELECT DISTINCT ?b WHERE { resource:Q860997 property:P21 ?b . ?b rdf:type ontology:Q290 }
male
That person belongs to male
male
action filter_type
action find
entity José Pedro Montero
relation gender
type sex
SELECT DISTINCT ?b WHERE { resource:José_Pedro_Montero property:gender ?b . ?b rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q860997
P39
Q12737077
USER
What was the position held by José Pedro Montero ?
(Q860997,P39,c(Q12737077))
action filter_type
action find
entity Q860997
relation P39
type Q12737077
['Q860997', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?m WHERE { resource:Q860997 property:P39 ?m . ?m rdf:type ontology:Q12737077 }
José Pedro Montero
action filter_type
action find
entity José Pedro Montero
relation position held
type occupation
['José Pedro Montero', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?m WHERE { resource:José_Pedro_Montero property:position_held ?m . ?m rdf:type ontology:occupation }
[]
occupation
Q34071
SYSTEM
President of Paraguay
Q34071
(Q860997,P39,c(Q12737077))
action filter_type
action find
entity Q860997
relation P39
type Q12737077
The position held by José Pedro Montero was the [ANSWER]
['Q860997', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?m WHERE { resource:Q860997 property:P39 ?m . ?m rdf:type ontology:Q12737077 }
President of Paraguay
The position held by José Pedro Montero was the President of Paraguay
President of Paraguay
action filter_type
action find
entity José Pedro Montero
relation position held
type occupation
['José Pedro Montero', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?m WHERE { resource:José_Pedro_Montero property:position_held ?m . ?m rdf:type ontology:occupation }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q34071 Q733
P1001
Q15617994
USER
Does Paraguay come under the supervision of President of Paraguay ?
(Q34071,P1001,Q733)
action is_in
entity Q733
action find
entity Q34071
relation P1001
['Q34071', 'P1001', 'Q733']
ASK WHERE { resource:Q34071 property:P1001 resource:Q733 }
President of Paraguay Paraguay
action is_in
entity Paraguay
action find
entity President of Paraguay
relation applies to jurisdiction
['President of Paraguay', 'applies to jurisdiction', 'Paraguay']
ASK WHERE { resource:President_of_Paraguay property:applies_to_jurisdiction resource:Paraguay }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q34071,P1001,Q733)
action is_in
entity Q733
action find
entity Q34071
relation P1001
[ANSWER]
['Q34071', 'P1001', 'Q733']
ASK WHERE { resource:Q34071 property:P1001 resource:Q733 }
Yes
action is_in
entity Paraguay
action find
entity President of Paraguay
relation applies to jurisdiction
['President of Paraguay', 'applies to jurisdiction', 'Paraguay']
ASK WHERE { resource:President_of_Paraguay property:applies_to_jurisdiction resource:Paraguay }
[]