Simple Question (Direct)
Simple Question
Q3111460
P641
Q31629
USER
Which type of sport did José María Errandonea participate in ?
(Q3111460,P641,c(Q31629))
action filter_type
action find
entity Q3111460
relation P641
type Q31629
['Q3111460', 'P641', {'concept': 'Q31629'}]
SELECT DISTINCT ?o WHERE { resource:Q3111460 property:P641 ?o . ?o rdf:type ontology:Q31629 }
José María Errandonea
action filter_type
action find
entity José María Errandonea
relation sport
type type of sport
['José María Errandonea', 'sport', {'concept': 'type of sport'}]
SELECT DISTINCT ?o WHERE { resource:José_María_Errandonea property:sport ?o . ?o rdf:type ontology:type_of_sport }
[]
type of sport
Q3609
SYSTEM
road bicycle racing
Q3609
(Q3111460,P641,c(Q31629))
action filter_type
action find
entity Q3111460
relation P641
type Q31629
José María Errandonea participated in [ANSWER]
['Q3111460', 'P641', {'concept': 'Q31629'}]
SELECT DISTINCT ?o WHERE { resource:Q3111460 property:P641 ?o . ?o rdf:type ontology:Q31629 }
road bicycle racing
José María Errandonea participated in road bicycle racing
road bicycle racing
action filter_type
action find
entity José María Errandonea
relation sport
type type of sport
['José María Errandonea', 'sport', {'concept': 'type of sport'}]
SELECT DISTINCT ?o WHERE { resource:José_María_Errandonea property:sport ?o . ?o rdf:type ontology:type_of_sport }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3111460
P21
Q290
USER
Which sex does José María Errandonea belong to ?
(Q3111460,P21,c(Q290))
action filter_type
action find
entity Q3111460
relation P21
type Q290
['Q3111460', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?r WHERE { resource:Q3111460 property:P21 ?r . ?r rdf:type ontology:Q290 }
José María Errandonea
action filter_type
action find
entity José María Errandonea
relation gender
type sex
['José María Errandonea', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?r WHERE { resource:José_María_Errandonea property:gender ?r . ?r rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q3111460,P21,c(Q290))
action filter_type
action find
entity Q3111460
relation P21
type Q290
José María Errandonea belongs to [ANSWER]
['Q3111460', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?r WHERE { resource:Q3111460 property:P21 ?r . ?r rdf:type ontology:Q290 }
male
José María Errandonea belongs to male
male
action filter_type
action find
entity José María Errandonea
relation gender
type sex
['José María Errandonea', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?r WHERE { resource:José_María_Errandonea property:gender ?r . ?r rdf:type ontology:sex }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q1450968
Q290
USER
And what about Oliver Schmäschke?
(Q1450968,P21,c(Q290))
action filter_type
action find
entity Q1450968
relation P21
type Q290
['Q1450968', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?v WHERE { resource:Q1450968 property:P21 ?v . ?v rdf:type ontology:Q290 }
Oliver Schmäschke
action filter_type
action find
entity Oliver Schmäschke
relation gender
type sex
['Oliver Schmäschke', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?v WHERE { resource:Oliver_Schmäschke property:gender ?v . ?v rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q1450968,P21,c(Q290))
action filter_type
action find
entity Q1450968
relation P21
type Q290
[ANSWER]
['Q1450968', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?v WHERE { resource:Q1450968 property:P21 ?v . ?v rdf:type ontology:Q290 }
male
male
action filter_type
action find
entity Oliver Schmäschke
relation gender
type sex
['Oliver Schmäschke', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?v WHERE { resource:Oliver_Schmäschke property:gender ?v . ?v rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1450968
P27
Q1048835
USER
Which political territory is the native country of that person ?
(Q6581097,P27,c(Q1048835))
action filter_type
action find
entity Q1450968
relation P27
type Q1048835
['Q6581097', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?s WHERE { resource:Q1450968 property:P27 ?s . ?s rdf:type ontology:Q1048835 }
Oliver Schmäschke
action filter_type
action find
entity Oliver Schmäschke
relation country of citizenship
type political territorial entity
['male', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Oliver_Schmäschke property:country_of_citizenship ?s . ?s rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
(Q6581097,P27,c(Q1048835))
action filter_type
action find
entity Q1450968
relation P27
type Q1048835
[ANSWER] is the native country of that person
['Q6581097', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?s WHERE { resource:Q1450968 property:P27 ?s . ?s rdf:type ontology:Q1048835 }
Germany
Germany is the native country of that person
Germany
action filter_type
action find
entity Oliver Schmäschke
relation country of citizenship
type political territorial entity
['male', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Oliver_Schmäschke property:country_of_citizenship ?s . ?s rdf:type ontology:political_territorial_entity }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q183 Q5663882 Q1007
P530
Q15617994
USER
Does that political territory have tactful political relations with Harrawi and Guinea-Bissau ?
(Q183,P530,Q5663882) (Q183,P530,Q1007)
action is_in
entity Q183
action intersection
action find_reverse
entity Q5663882
relation P530
action find_reverse
entity Q1007
relation P530
['Q183', 'P530', 'Q5663882'] ['Q183', 'P530', 'Q1007']
ASK WHERE { resource:Q183 property:P530 resource:Q5663882 . resource:Q183 property:P530 resource:Q1007 }
Germany Harrawi Guinea-Bissau
action is_in
entity Germany
action intersection
action find_reverse
entity Harrawi
relation diplomatic relation
action find_reverse
entity Guinea-Bissau
relation diplomatic relation
['Germany', 'diplomatic relation', 'Harrawi'] ['Germany', 'diplomatic relation', 'Guinea-Bissau']
ASK WHERE { resource:Germany property:diplomatic_relation resource:Harrawi . resource:Germany property:diplomatic_relation resource:Guinea-Bissau }
[]
designation for an administrative territorial entity
SYSTEM
NO and YES respectively
(Q183,P530,Q5663882) (Q183,P530,Q1007)
action is_in
entity Q183
action intersection
action find_reverse
entity Q5663882
relation P530
action find_reverse
entity Q1007
relation P530
[ANSWER]
['Q183', 'P530', 'Q5663882'] ['Q183', 'P530', 'Q1007']
ASK WHERE { resource:Q183 property:P530 resource:Q5663882 . resource:Q183 property:P530 resource:Q1007 }
NO and YES respectively
action is_in
entity Germany
action intersection
action find_reverse
entity Harrawi
relation diplomatic relation
action find_reverse
entity Guinea-Bissau
relation diplomatic relation
['Germany', 'diplomatic relation', 'Harrawi'] ['Germany', 'diplomatic relation', 'Guinea-Bissau']
ASK WHERE { resource:Germany property:diplomatic_relation resource:Harrawi . resource:Germany property:diplomatic_relation resource:Guinea-Bissau }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q183
P530
Q1048835 Q515
USER
How many political territories or cities have diplomatic relationships with Germany ?
(Q183,P530,c(Q1048835)) (Q183,P530,c(Q515))
action count
action union
action filter_type
action find
entity Q183
relation P530
type Q1048835
action filter_type
action find
entity Q183
relation P530
type Q515
['Q183', 'P530', {'concept': 'Q1048835'}] ['Q183', 'P530', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?i ) WHERE { { resource:Q183 property:P530 ?h . ?h rdf:type ontology:Q515 } UNION { resource:Q183 property:P530 ?h . ?h rdf:type ontology:Q1048835 } }
Germany
action count
action union
action filter_type
action find
entity Germany
relation diplomatic relation
type political territorial entity
action filter_type
action find
entity Germany
relation diplomatic relation
type city
['Germany', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Germany', 'diplomatic relation', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?i ) WHERE { { resource:Germany property:diplomatic_relation ?h . ?h rdf:type ontology:city } UNION { resource:Germany property:diplomatic_relation ?h . ?h rdf:type ontology:political_territorial_entity } }
[]
political territorial entity city
SYSTEM
7
Q235 Q408 Q1000 Q35 Q40 Q16 Q664
(Q183,P530,c(Q1048835)) (Q183,P530,c(Q515))
action count
action union
action filter_type
action find
entity Q183
relation P530
type Q1048835
action filter_type
action find
entity Q183
relation P530
type Q515
[ANSWER]
['Q183', 'P530', {'concept': 'Q1048835'}] ['Q183', 'P530', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?i ) WHERE { { resource:Q183 property:P530 ?h . ?h rdf:type ontology:Q515 } UNION { resource:Q183 property:P530 ?h . ?h rdf:type ontology:Q1048835 } }
Monaco Australia Gabon Denmark Austria Canada New Zealand
7
action count
action union
action filter_type
action find
entity Germany
relation diplomatic relation
type political territorial entity
action filter_type
action find
entity Germany
relation diplomatic relation
type city
['Germany', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Germany', 'diplomatic relation', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?i ) WHERE { { resource:Germany property:diplomatic_relation ?h . ?h rdf:type ontology:city } UNION { resource:Germany property:diplomatic_relation ?h . ?h rdf:type ontology:political_territorial_entity } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q16573369 Q3111460
P27
Q15617994
USER
Which administrative territories are the countries of citizenship of José María Errandonea or Trung Trung Lê ?
OR((Q3111460,P27,c(Q15617994)), (Q16573369,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q3111460
relation P27
action find
entity Q16573369
relation P27
type Q15617994
{'OR': [['Q3111460', 'P27', {'concept': 'Q15617994'}], ['Q16573369', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?w WHERE { { ?h property:P27 ?w . VALUES ( ?h ) { ( resource:Q3111460 ) ( resource:Q16573369 ) } } . ?w rdf:type ontology:Q15617994 }
Trung Trung Lê José María Errandonea
action filter_type
action union
action find
entity José María Errandonea
relation country of citizenship
action find
entity Trung Trung Lê
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['José María Errandonea', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Trung Trung Lê', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?w WHERE { { ?h property:country_of_citizenship ?w . VALUES ( ?h ) { ( resource:José_María_Errandonea ) ( resource:Trung_Trung_Lê ) } } . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q29 Q881
SYSTEM
Spain, Vietnam
Q29 Q881
OR((Q3111460,P27,c(Q15617994)), (Q16573369,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q3111460
relation P27
action find
entity Q16573369
relation P27
type Q15617994
[ANSWERS] are the countries of citizenship of José María Errandonea or Trung Lê
{'OR': [['Q3111460', 'P27', {'concept': 'Q15617994'}], ['Q16573369', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?w WHERE { { ?h property:P27 ?w . VALUES ( ?h ) { ( resource:Q3111460 ) ( resource:Q16573369 ) } } . ?w rdf:type ontology:Q15617994 }
Spain Vietnam
Spain and Vietnam are the countries of citizenship of José María Errandonea or Trung Lê
Spain Vietnam
action filter_type
action union
action find
entity José María Errandonea
relation country of citizenship
action find
entity Trung Trung Lê
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['José María Errandonea', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Trung Trung Lê', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?w WHERE { { ?h property:country_of_citizenship ?w . VALUES ( ?h ) { ( resource:José_María_Errandonea ) ( resource:Trung_Trung_Lê ) } } . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P463
Q35749 Q43229
USER
How many parliaments or organizations were that administrative territory a member of ?
(Q29,P463,c(Q35749)) (Q29,P463,c(Q43229)) (Q29,P463,c(Q35749)) (Q29,P463,c(Q43229)) (Q881,P463,c(Q35749)) (Q881,P463,c(Q43229))
['Q29', 'P463', {'concept': 'Q35749'}] ['Q29', 'P463', {'concept': 'Q43229'}] ['Q29', 'P463', {'concept': 'Q35749'}] ['Q29', 'P463', {'concept': 'Q43229'}] ['Q881', 'P463', {'concept': 'Q35749'}] ['Q881', 'P463', {'concept': 'Q43229'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q20266861 property:P463 ?z } UNION { resource:Q20266861 property:P463 ?y } UNION { resource:Q20266861 property:P463 ?z } UNION { resource:Q20266861 property:P463 ?y } UNION { resource:Q2523822 property:P463 ?z } UNION { resource:Q2523822 property:P463 ?y } } . ?z rdf:type ontology:Q35749 . ?y rdf:type ontology:Q43229 }
['Spain', 'member of', {'concept': 'parliament'}] ['Spain', 'member of', {'concept': 'organization'}] ['Spain', 'member of', {'concept': 'parliament'}] ['Spain', 'member of', {'concept': 'organization'}] ['Vietnam', 'member of', {'concept': 'parliament'}] ['Vietnam', 'member of', {'concept': 'organization'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Spain property:member_of ?z } UNION { resource:Spain property:member_of ?y } UNION { resource:Spain property:member_of ?z } UNION { resource:Spain property:member_of ?y } UNION { resource:Vietnam property:member_of ?z } UNION { resource:Vietnam property:member_of ?y } } . ?z rdf:type ontology:parliament . ?y rdf:type ontology:organization }
[]
parliament organization
Quantitative|Count|Mult. entity type|Clarification
Q881
SYSTEM
Did you mean Vietnam ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q20266861 property:P463 ?z } UNION { resource:Q20266861 property:P463 ?y } UNION { resource:Q20266861 property:P463 ?z } UNION { resource:Q20266861 property:P463 ?y } UNION { resource:Q2523822 property:P463 ?z } UNION { resource:Q2523822 property:P463 ?y } } . ?z rdf:type ontology:Q35749 . ?y rdf:type ontology:Q43229 }
Did you mean Vietnam ?
Vietnam
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Spain property:member_of ?z } UNION { resource:Spain property:member_of ?y } UNION { resource:Spain property:member_of ?z } UNION { resource:Spain property:member_of ?y } UNION { resource:Vietnam property:member_of ?z } UNION { resource:Vietnam property:member_of ?y } } . ?z rdf:type ontology:parliament . ?y rdf:type ontology:organization }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Spain. Could you tell me the answer for that?
(Q29,P463,c(Q35749)) (Q29,P463,c(Q43229)) (Q29,P463,c(Q35749)) (Q29,P463,c(Q43229)) (Q881,P463,c(Q35749)) (Q881,P463,c(Q43229))
Q29
['Q29', 'P463', {'concept': 'Q35749'}] ['Q29', 'P463', {'concept': 'Q43229'}] ['Q29', 'P463', {'concept': 'Q35749'}] ['Q29', 'P463', {'concept': 'Q43229'}] ['Q881', 'P463', {'concept': 'Q35749'}] ['Q881', 'P463', {'concept': 'Q43229'}]
['Spain', 'member of', {'concept': 'parliament'}] ['Spain', 'member of', {'concept': 'organization'}] ['Spain', 'member of', {'concept': 'parliament'}] ['Spain', 'member of', {'concept': 'organization'}] ['Vietnam', 'member of', {'concept': 'parliament'}] ['Vietnam', 'member of', {'concept': 'organization'}]
[]
SYSTEM
9
Q340195 Q191384 Q899770 Q41550 Q656801 Q151991 Q37470 Q7825 Q827525
(Q29,P463,c(Q35749)) (Q29,P463,c(Q43229)) (Q29,P463,c(Q35749)) (Q29,P463,c(Q43229)) (Q881,P463,c(Q35749)) (Q881,P463,c(Q43229))
[ANSWER]
['Q29', 'P463', {'concept': 'Q35749'}] ['Q29', 'P463', {'concept': 'Q43229'}] ['Q29', 'P463', {'concept': 'Q35749'}] ['Q29', 'P463', {'concept': 'Q43229'}] ['Q881', 'P463', {'concept': 'Q35749'}] ['Q881', 'P463', {'concept': 'Q43229'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q20266861 property:P463 ?z } UNION { resource:Q20266861 property:P463 ?y } UNION { resource:Q20266861 property:P463 ?z } UNION { resource:Q20266861 property:P463 ?y } UNION { resource:Q2523822 property:P463 ?z } UNION { resource:Q2523822 property:P463 ?y } } . ?z rdf:type ontology:Q35749 . ?y rdf:type ontology:Q43229 }
African Development Bank International Bank for Reconstruction and Development International Centre for Settlement of Investment Disputes Organisation for Economic Co-operation and Development International Finance Corporation European Southern Observatory United Nations Security Council World Trade Organization International Development Association
9
['Spain', 'member of', {'concept': 'parliament'}] ['Spain', 'member of', {'concept': 'organization'}] ['Spain', 'member of', {'concept': 'parliament'}] ['Spain', 'member of', {'concept': 'organization'}] ['Vietnam', 'member of', {'concept': 'parliament'}] ['Vietnam', 'member of', {'concept': 'organization'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Spain property:member_of ?z } UNION { resource:Spain property:member_of ?y } UNION { resource:Spain property:member_of ?z } UNION { resource:Spain property:member_of ?y } UNION { resource:Vietnam property:member_of ?z } UNION { resource:Vietnam property:member_of ?y } } . ?z rdf:type ontology:parliament . ?y rdf:type ontology:organization }
[]