Simple Question (Direct)
Simple Question
Q3371483
P19
Q56061
USER
Which administrative territory is the birthplace of Paul Hyacinthe Loyson ?
(Q3371483,P19,c(Q56061))
action filter_type
action find
entity Q3371483
relation P19
type Q56061
['Q3371483', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?n WHERE { resource:Q3371483 property:P19 ?n . ?n rdf:type ontology:Q56061 }
Paul Hyacinthe Loyson
action filter_type
action find
entity Paul Hyacinthe Loyson
relation place of birth
type administrative territorial entity
['Paul Hyacinthe Loyson', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Paul_Hyacinthe_Loyson property:place_of_birth ?n . ?n rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q71
SYSTEM
Geneva
Q71
(Q3371483,P19,c(Q56061))
action filter_type
action find
entity Q3371483
relation P19
type Q56061
[ANSWER] is the birthplace of Paul Hyacinthe Loyson
['Q3371483', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?n WHERE { resource:Q3371483 property:P19 ?n . ?n rdf:type ontology:Q56061 }
Geneva
Geneva is the birthplace of Paul Hyacinthe Loyson
Geneva
action filter_type
action find
entity Paul Hyacinthe Loyson
relation place of birth
type administrative territorial entity
['Paul Hyacinthe Loyson', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Paul_Hyacinthe_Loyson property:place_of_birth ?n . ?n rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3371483
P40
Q502895
USER
Which person has that one as an offspring ?
(c(Q502895),P40,Q71)
action filter_type
action find_reverse
entity Q3371483
relation P40
type Q502895
[{'concept': 'Q502895'}, 'P40', 'Q71']
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q502895 . ?t property:P40 resource:Q3371483 }
Paul Hyacinthe Loyson
action filter_type
action find_reverse
entity Paul Hyacinthe Loyson
relation child
type common name
[{'concept': 'common name'}, 'child', 'Geneva']
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:common_name . ?t property:child resource:Paul_Hyacinthe_Loyson }
[]
common name
Q3143595
SYSTEM
Hyacinthe Loyson
Q3143595
(c(Q502895),P40,Q71)
action filter_type
action find_reverse
entity Q3371483
relation P40
type Q502895
[ANSWER] has that one as an offspring
[{'concept': 'Q502895'}, 'P40', 'Q71']
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q502895 . ?t property:P40 resource:Q3371483 }
Hyacinthe Loyson
Hyacinthe Loyson has that one as an offspring
Hyacinthe Loyson
action filter_type
action find_reverse
entity Paul Hyacinthe Loyson
relation child
type common name
[{'concept': 'common name'}, 'child', 'Geneva']
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:common_name . ?t property:child resource:Paul_Hyacinthe_Loyson }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q71
P30
Q2221906
USER
Which geographic location is Geneva located in ?
(Q71,P30,c(Q2221906))
action filter_type
action find
entity Q71
relation P30
type Q2221906
['Q71', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?a WHERE { resource:Q71 property:P30 ?a . ?a rdf:type ontology:Q2221906 }
Geneva
action filter_type
action find
entity Geneva
relation continent
type geographic location
['Geneva', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?a WHERE { resource:Geneva property:continent ?a . ?a rdf:type ontology:geographic_location }
[]
geographic location
Q46
SYSTEM
Europe
Q46
(Q71,P30,c(Q2221906))
action filter_type
action find
entity Q71
relation P30
type Q2221906
Geneva is located in [ANSWER]
['Q71', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?a WHERE { resource:Q71 property:P30 ?a . ?a rdf:type ontology:Q2221906 }
Europe
Geneva is located in Europe
Europe
action filter_type
action find
entity Geneva
relation continent
type geographic location
['Geneva', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?a WHERE { resource:Geneva property:continent ?a . ?a rdf:type ontology:geographic_location }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q21489808
Q2221906
USER
And how about Larseninsel?
(Q21489808,P30,c(Q2221906))
action filter_type
action find
entity Q21489808
relation P30
type Q2221906
['Q21489808', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?m WHERE { resource:Q21489808 property:P30 ?m . ?m rdf:type ontology:Q2221906 }
Larseninsel
action filter_type
action find
entity Larseninsel
relation continent
type geographic location
['Larseninsel', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?m WHERE { resource:Larseninsel property:continent ?m . ?m rdf:type ontology:geographic_location }
[]
geographic location
Q51
SYSTEM
Antarctica
Q51
(Q21489808,P30,c(Q2221906))
action filter_type
action find
entity Q21489808
relation P30
type Q2221906
[ANSWER]
['Q21489808', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?m WHERE { resource:Q21489808 property:P30 ?m . ?m rdf:type ontology:Q2221906 }
Antarctica
Antarctica
action filter_type
action find
entity Larseninsel
relation continent
type geographic location
['Larseninsel', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?m WHERE { resource:Larseninsel property:continent ?m . ?m rdf:type ontology:geographic_location }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q51 Q7272486
P61
Q502895
USER
Did Quinton Griffith discover or invented that geographic location ?
(Q51,P61,Q7272486)
action is_in
entity Q7272486
action find
entity Q51
relation P61
['Q51', 'P61', 'Q7272486']
ASK WHERE { resource:Q51 property:P61 resource:Q7272486 }
Antarctica Quinton Griffith
action is_in
entity Quinton Griffith
action find
entity Antarctica
relation discoverer or inventor
['Antarctica', 'discoverer or inventor', 'Quinton Griffith']
ASK WHERE { resource:Antarctica property:discoverer_or_inventor resource:Quinton_Griffith }
[]
common name
SYSTEM
NO
(Q51,P61,Q7272486)
action is_in
entity Q7272486
action find
entity Q51
relation P61
[ANSWER]
['Q51', 'P61', 'Q7272486']
ASK WHERE { resource:Q51 property:P61 resource:Q7272486 }
No
action is_in
entity Quinton Griffith
action find
entity Antarctica
relation discoverer or inventor
['Antarctica', 'discoverer or inventor', 'Quinton Griffith']
ASK WHERE { resource:Antarctica property:discoverer_or_inventor resource:Quinton_Griffith }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q71 Q3805
P190
Q56061
USER
Is Amman twin town of Geneva ?
(Q71,P190,Q3805)
action is_in
entity Q3805
action find
entity Q71
relation P190
['Q71', 'P190', 'Q3805']
ASK WHERE { resource:Q71 property:P190 resource:Q3805 }
Geneva Amman
action is_in
entity Amman
action find
entity Geneva
relation sister city
['Geneva', 'sister city', 'Amman']
ASK WHERE { resource:Geneva property:sister_city resource:Amman }
[]
administrative territorial entity
SYSTEM
YES
(Q71,P190,Q3805)
action is_in
entity Q3805
action find
entity Q71
relation P190
[ANSWER]
['Q71', 'P190', 'Q3805']
ASK WHERE { resource:Q71 property:P190 resource:Q3805 }
Yes
action is_in
entity Amman
action find
entity Geneva
relation sister city
['Geneva', 'sister city', 'Amman']
ASK WHERE { resource:Geneva property:sister_city resource:Amman }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q71
P6
Q502895
USER
Which person is the head of government of Geneva ?
action filter_type
action find
entity Q71
relation P6
type Q502895
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q502895 . resource:Q71 property:P6 ?a }
Geneva
action filter_type
action find
entity Geneva
relation head of government
type common name
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:common_name . resource:Geneva property:head_of_government ?a }
[]
common name
Q15818580
SYSTEM
Guillaume Barazzone
Q15818580
action filter_type
action find
entity Q71
relation P6
type Q502895
[ANSWER] is the head of government of Geneva
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q502895 . resource:Q71 property:P6 ?a }
Guillaume Barazzone
Guillaume Barazzone is the head of government of Geneva
Guillaume Barazzone
action filter_type
action find
entity Geneva
relation head of government
type common name
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:common_name . resource:Geneva property:head_of_government ?a }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q71
P1313
Q12737077
USER
Which occupation serves as the political office that is fulfilled by the head of the government of that administrative territory ?
(Q15818580,P1313,c(Q12737077))
action filter_type
action find
entity Q71
relation P1313
type Q12737077
['Q15818580', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?v WHERE { resource:Q71 property:P1313 ?v . ?v rdf:type ontology:Q12737077 }
Geneva
action filter_type
action find
entity Geneva
relation office held by head of government
type occupation
['Guillaume Barazzone', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?v WHERE { resource:Geneva property:office_held_by_head_of_government ?v . ?v rdf:type ontology:occupation }
[]
occupation
Q24703283
SYSTEM
Mayor of Genève
Q24703283
(Q15818580,P1313,c(Q12737077))
action filter_type
action find
entity Q71
relation P1313
type Q12737077
[ANSWER] serves as the political office that is fulfilled by the head of the government of that administrative territory
['Q15818580', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?v WHERE { resource:Q71 property:P1313 ?v . ?v rdf:type ontology:Q12737077 }
Mayor of Genève
Mayor of Genève serves as the political office that is fulfilled by the head of the government of that administrative territory
Mayor of Genève
action filter_type
action find
entity Geneva
relation office held by head of government
type occupation
['Guillaume Barazzone', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?v WHERE { resource:Geneva property:office_held_by_head_of_government ?v . ?v rdf:type ontology:occupation }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q19634824 Q71
P17
Q15617994
USER
Which administrative territories are Geneva or Villapark situated in ?
OR((Q71,P17,c(Q15617994)), (Q19634824,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q71
relation P17
action find
entity Q19634824
relation P17
type Q15617994
{'OR': [['Q71', 'P17', {'concept': 'Q15617994'}], ['Q19634824', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q15617994 . { { resource:Q71 property:P17 ?t } UNION { resource:Q19634824 property:P17 ?t } } }
Villapark Geneva
action filter_type
action union
action find
entity Geneva
relation country
action find
entity Villapark
relation country
type designation for an administrative territorial entity
{'OR': [['Geneva', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Villapark', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Geneva property:country ?t } UNION { resource:Villapark property:country ?t } } }
[]
designation for an administrative territorial entity
Q142 Q39 Q55
SYSTEM
France, Switzerland, Netherlands
Q142 Q39 Q55
OR((Q71,P17,c(Q15617994)), (Q19634824,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q71
relation P17
action find
entity Q19634824
relation P17
type Q15617994
Geneva or Villapark are situated in [ANSWERS]
{'OR': [['Q71', 'P17', {'concept': 'Q15617994'}], ['Q19634824', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q15617994 . { { resource:Q71 property:P17 ?t } UNION { resource:Q19634824 property:P17 ?t } } }
France Switzerland Netherlands
Geneva or Villapark are situated in France, Switzerland and Netherlands
France Switzerland Netherlands
action filter_type
action union
action find
entity Geneva
relation country
action find
entity Villapark
relation country
type designation for an administrative territorial entity
{'OR': [['Geneva', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Villapark', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Geneva property:country ?t } UNION { resource:Villapark property:country ?t } } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q1048835 Q15617994
USER
Which political territories have diplomatic relations with max number of administrative territories ?
(c(Q15617994),P530,Q766)
action argmax
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
[{'concept': 'Q15617994'}, 'P530', 'Q766']
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MAX ( ?b ) AS ?h ) { SELECT DISTINCT ?v ( COUNT ( ?u ) AS ?b ) WHERE { ?v rdf:type ontology:Q1048835 . ?u rdf:type ontology:Q15617994 . ?v property:P530 ?u } GROUP BY ?v } } . { SELECT DISTINCT ?s ( COUNT ( ?g ) AS ?m ) WHERE { ?s rdf:type ontology:Q1048835 . ?g rdf:type ontology:Q15617994 . ?s property:P530 ?g } GROUP BY ?s } . FILTER ( ?m = ?h ) }
action argmax
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Jamaica']
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MAX ( ?b ) AS ?h ) { SELECT DISTINCT ?v ( COUNT ( ?u ) AS ?b ) WHERE { ?v rdf:type ontology:political_territorial_entity . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v property:diplomatic_relation ?u } GROUP BY ?v } } . { SELECT DISTINCT ?s ( COUNT ( ?g ) AS ?m ) WHERE { ?s rdf:type ontology:political_territorial_entity . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . ?s property:diplomatic_relation ?g } GROUP BY ?s } . FILTER ( ?m = ?h ) }
[]
political territorial entity designation for an administrative territorial entity
Q183
SYSTEM
Germany
Q183
(c(Q15617994),P530,Q766)
action argmax
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
[ANSWER] have diplomatic relations with max number of administrative territories
[{'concept': 'Q15617994'}, 'P530', 'Q766']
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MAX ( ?b ) AS ?h ) { SELECT DISTINCT ?v ( COUNT ( ?u ) AS ?b ) WHERE { ?v rdf:type ontology:Q1048835 . ?u rdf:type ontology:Q15617994 . ?v property:P530 ?u } GROUP BY ?v } } . { SELECT DISTINCT ?s ( COUNT ( ?g ) AS ?m ) WHERE { ?s rdf:type ontology:Q1048835 . ?g rdf:type ontology:Q15617994 . ?s property:P530 ?g } GROUP BY ?s } . FILTER ( ?m = ?h ) }
Germany
Germany have diplomatic relations with max number of administrative territories
Germany
action argmax
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Jamaica']
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MAX ( ?b ) AS ?h ) { SELECT DISTINCT ?v ( COUNT ( ?u ) AS ?b ) WHERE { ?v rdf:type ontology:political_territorial_entity . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v property:diplomatic_relation ?u } GROUP BY ?v } } . { SELECT DISTINCT ?s ( COUNT ( ?g ) AS ?m ) WHERE { ?s rdf:type ontology:political_territorial_entity . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . ?s property:diplomatic_relation ?g } GROUP BY ?s } . FILTER ( ?m = ?h ) }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q183 Q945
P530
Q15617994
USER
Does Togo have diplomatic relationships with that political territory ?
(Q183,P530,Q945)
action is_in
entity Q945
action find
entity Q183
relation P530
['Q183', 'P530', 'Q945']
ASK WHERE { resource:Q183 property:P530 resource:Q945 }
Germany Togo
action is_in
entity Togo
action find
entity Germany
relation diplomatic relation
['Germany', 'diplomatic relation', 'Togo']
ASK WHERE { resource:Germany property:diplomatic_relation resource:Togo }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q183,P530,Q945)
action is_in
entity Q945
action find
entity Q183
relation P530
[ANSWER]
['Q183', 'P530', 'Q945']
ASK WHERE { resource:Q183 property:P530 resource:Q945 }
Yes
action is_in
entity Togo
action find
entity Germany
relation diplomatic relation
['Germany', 'diplomatic relation', 'Togo']
ASK WHERE { resource:Germany property:diplomatic_relation resource:Togo }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q183 Q846
P463
Q43229
USER
How many organizations were Germany and Qatar a member of ?
(Q183,P463,c(Q43229)) (Q846,P463,c(Q43229))
action count
action intersection
action filter_type
action find
entity Q183
relation P463
type Q43229
action filter_type
action find
entity Q846
relation P463
type Q43229
['Q183', 'P463', {'concept': 'Q43229'}] ['Q846', 'P463', {'concept': 'Q43229'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?f ) WHERE { resource:Q183 property:P463 ?y . ?y rdf:type ontology:Q43229 . resource:Q846 property:P463 ?y . ?y rdf:type ontology:Q43229 }
Germany Qatar
action count
action intersection
action filter_type
action find
entity Germany
relation member of
type organization
action filter_type
action find
entity Qatar
relation member of
type organization
['Germany', 'member of', {'concept': 'organization'}] ['Qatar', 'member of', {'concept': 'organization'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?f ) WHERE { resource:Germany property:member_of ?y . ?y rdf:type ontology:organization . resource:Qatar property:member_of ?y . ?y rdf:type ontology:organization }
[]
organization
SYSTEM
4
Q7825 Q191384 Q899770 Q656801
(Q183,P463,c(Q43229)) (Q846,P463,c(Q43229))
action count
action intersection
action filter_type
action find
entity Q183
relation P463
type Q43229
action filter_type
action find
entity Q846
relation P463
type Q43229
[ANSWER]
['Q183', 'P463', {'concept': 'Q43229'}] ['Q846', 'P463', {'concept': 'Q43229'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?f ) WHERE { resource:Q183 property:P463 ?y . ?y rdf:type ontology:Q43229 . resource:Q846 property:P463 ?y . ?y rdf:type ontology:Q43229 }
World Trade Organization International Bank for Reconstruction and Development International Centre for Settlement of Investment Disputes International Finance Corporation
4
action count
action intersection
action filter_type
action find
entity Germany
relation member of
type organization
action filter_type
action find
entity Qatar
relation member of
type organization
['Germany', 'member of', {'concept': 'organization'}] ['Qatar', 'member of', {'concept': 'organization'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?f ) WHERE { resource:Germany property:member_of ?y . ?y rdf:type ontology:organization . resource:Qatar property:member_of ?y . ?y rdf:type ontology:organization }
[]