Simple Question (Direct)
Simple Question
Q4482018
P106
Q12737077
USER
Which occupation has Alyaksandr Fyedarovich as his/her 's career ?
(Q4482018,P106,c(Q12737077))
action filter_type
action find
entity Q4482018
relation P106
type Q12737077
['Q4482018', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q12737077 . resource:Q4482018 property:P106 ?g }
Alyaksandr Fyedarovich
action filter_type
action find
entity Alyaksandr Fyedarovich
relation occupation
type occupation
['Alyaksandr Fyedarovich', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:occupation . resource:Alyaksandr_Fyedarovich property:occupation ?g }
[]
occupation
Q937857
SYSTEM
association football player
Q937857
(Q4482018,P106,c(Q12737077))
action filter_type
action find
entity Q4482018
relation P106
type Q12737077
As [ANSWER] has Alyaksandr Fyedarovich as his/her 's career
['Q4482018', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q12737077 . resource:Q4482018 property:P106 ?g }
association football player
As association football player has Alyaksandr Fyedarovich as his/her 's career
association football player
action filter_type
action find
entity Alyaksandr Fyedarovich
relation occupation
type occupation
['Alyaksandr Fyedarovich', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:occupation . resource:Alyaksandr_Fyedarovich property:occupation ?g }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q4482018
P641
Q349
USER
Which sport did Alyaksandr Fyedarovich participate in ?
(Q4482018,P641,c(Q349))
action filter_type
action find
entity Q4482018
relation P641
type Q349
['Q4482018', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?j WHERE { resource:Q4482018 property:P641 ?j . ?j rdf:type ontology:Q349 }
Alyaksandr Fyedarovich
action filter_type
action find
entity Alyaksandr Fyedarovich
relation sport
type sport
['Alyaksandr Fyedarovich', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?j WHERE { resource:Alyaksandr_Fyedarovich property:sport ?j . ?j rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q4482018,P641,c(Q349))
action filter_type
action find
entity Q4482018
relation P641
type Q349
Alyaksandr Fyedarovich participated in [ANSWER]
['Q4482018', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?j WHERE { resource:Q4482018 property:P641 ?j . ?j rdf:type ontology:Q349 }
association football
Alyaksandr Fyedarovich participated in association football
association football
action filter_type
action find
entity Alyaksandr Fyedarovich
relation sport
type sport
['Alyaksandr Fyedarovich', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?j WHERE { resource:Alyaksandr_Fyedarovich property:sport ?j . ?j rdf:type ontology:sport }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q4482018
P734
Q82799
USER
Who is associated with that person ?
(Q2736,P734,c(Q82799))
action filter_type
action find
entity Q4482018
relation P734
type Q82799
['Q2736', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?u WHERE { resource:Q4482018 property:P734 ?u . ?u rdf:type ontology:Q82799 }
Alyaksandr Fyedarovich
action filter_type
action find
entity Alyaksandr Fyedarovich
relation family name
type name
['association football', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?u WHERE { resource:Alyaksandr_Fyedarovich property:family_name ?u . ?u rdf:type ontology:name }
[]
name
Q4482015
SYSTEM
Fedorovich
Q4482015
(Q2736,P734,c(Q82799))
action filter_type
action find
entity Q4482018
relation P734
type Q82799
[ANSWER] is associated with that person
['Q2736', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?u WHERE { resource:Q4482018 property:P734 ?u . ?u rdf:type ontology:Q82799 }
Fedorovich
Fedorovich is associated with that person
Fedorovich
action filter_type
action find
entity Alyaksandr Fyedarovich
relation family name
type name
['association football', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?u WHERE { resource:Alyaksandr_Fyedarovich property:family_name ?u . ?u rdf:type ontology:name }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P407
Q34770 Q82799
USER
Which languages are atleast 78 names in ?
(c(Q82799),P407,c(Q34770))
action atleast
action find_reverse_tuple_counts
relation P407
type Q34770
type Q82799
value 78
[{'concept': 'Q82799'}, 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ?a WHERE { FILTER ( ?v >= 78 ) . { SELECT DISTINCT ?a ( COUNT ( ?y ) AS ?v ) WHERE { ?y property:P407 ?a . ?y rdf:type ontology:Q82799 . ?a rdf:type ontology:Q34770 } GROUP BY ?a } }
action atleast
action find_reverse_tuple_counts
relation language of work or name
type language
type name
value 78
[{'concept': 'name'}, 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ?a WHERE { FILTER ( ?v >= 78 ) . { SELECT DISTINCT ?a ( COUNT ( ?y ) AS ?v ) WHERE { ?y property:language_of_work_or_name ?a . ?y rdf:type ontology:name . ?a rdf:type ontology:language } GROUP BY ?a } }
[]
language name
Q1860 Q1321
SYSTEM
English, Spanish
Q1860 Q1321
(c(Q82799),P407,c(Q34770))
action atleast
action find_reverse_tuple_counts
relation P407
type Q34770
type Q82799
value 78
[ANSWERS] are atleast 78 names in
[{'concept': 'Q82799'}, 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ?a WHERE { FILTER ( ?v >= 78 ) . { SELECT DISTINCT ?a ( COUNT ( ?y ) AS ?v ) WHERE { ?y property:P407 ?a . ?y rdf:type ontology:Q82799 . ?a rdf:type ontology:Q34770 } GROUP BY ?a } }
English Spanish
English and Spanish are atleast 78 names in
English Spanish
action atleast
action find_reverse_tuple_counts
relation language of work or name
type language
type name
value 78
[{'concept': 'name'}, 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ?a WHERE { FILTER ( ?v >= 78 ) . { SELECT DISTINCT ?a ( COUNT ( ?y ) AS ?v ) WHERE { ?y property:language_of_work_or_name ?a . ?y rdf:type ontology:name . ?a rdf:type ontology:language } GROUP BY ?a } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q4482018
P19
Q56061
USER
Which administrative territory is the place of birth of Alyaksandr Fyedarovich ?
(Q4482018,P19,c(Q56061))
action filter_type
action find
entity Q4482018
relation P19
type Q56061
['Q4482018', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?t WHERE { resource:Q4482018 property:P19 ?t . ?t rdf:type ontology:Q56061 }
Alyaksandr Fyedarovich
action filter_type
action find
entity Alyaksandr Fyedarovich
relation place of birth
type administrative territorial entity
['Alyaksandr Fyedarovich', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { resource:Alyaksandr_Fyedarovich property:place_of_birth ?t . ?t rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q2280
SYSTEM
Minsk
Q2280
(Q4482018,P19,c(Q56061))
action filter_type
action find
entity Q4482018
relation P19
type Q56061
[ANSWER] is the place of birth of Alyaksandr Fyedarovich
['Q4482018', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?t WHERE { resource:Q4482018 property:P19 ?t . ?t rdf:type ontology:Q56061 }
Minsk
Minsk is the place of birth of Alyaksandr Fyedarovich
Minsk
action filter_type
action find
entity Alyaksandr Fyedarovich
relation place of birth
type administrative territorial entity
['Alyaksandr Fyedarovich', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { resource:Alyaksandr_Fyedarovich property:place_of_birth ?t . ?t rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q2149430
Q56061
USER
And how about Richard Erdman?
(Q2149430,P19,c(Q56061))
action filter_type
action find
entity Q2149430
relation P19
type Q56061
['Q2149430', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?j WHERE { resource:Q2149430 property:P19 ?j . ?j rdf:type ontology:Q56061 }
Richard Erdman
action filter_type
action find
entity Richard Erdman
relation place of birth
type administrative territorial entity
['Richard Erdman', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Richard_Erdman property:place_of_birth ?j . ?j rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q984361
SYSTEM
Enid
Q984361
(Q2149430,P19,c(Q56061))
action filter_type
action find
entity Q2149430
relation P19
type Q56061
[ANSWER]
['Q2149430', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?j WHERE { resource:Q2149430 property:P19 ?j . ?j rdf:type ontology:Q56061 }
Enid
Enid
action filter_type
action find
entity Richard Erdman
relation place of birth
type administrative territorial entity
['Richard Erdman', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Richard_Erdman property:place_of_birth ?j . ?j rdf:type ontology:administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q984361 Q3499014
P19
Q502895
USER
Does Steve McJannett have location of birth at that administrative territory ?
(Q3499014,P19,Q984361)
action is_in
entity Q3499014
action find
entity Q984361
relation P19
['Q3499014', 'P19', 'Q984361']
ASK WHERE { resource:Q984361 property:P19 resource:Q3499014 }
Enid Steve McJannett
action is_in
entity Steve McJannett
action find
entity Enid
relation place of birth
['Steve McJannett', 'place of birth', 'Enid']
ASK WHERE { resource:Enid property:place_of_birth resource:Steve_McJannett }
[]
common name
SYSTEM
NO
(Q3499014,P19,Q984361)
action is_in
entity Q3499014
action find
entity Q984361
relation P19
[ANSWER]
['Q3499014', 'P19', 'Q984361']
ASK WHERE { resource:Q984361 property:P19 resource:Q3499014 }
No
action is_in
entity Steve McJannett
action find
entity Enid
relation place of birth
['Steve McJannett', 'place of birth', 'Enid']
ASK WHERE { resource:Enid property:place_of_birth resource:Steve_McJannett }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q937857 Q2736 Q4412527
P425
Q349
USER
Does association football player have association football and Northeast Grand Prix as thier field of occupation ?
(Q937857,P425,Q2736) (Q937857,P425,Q4412527)
action is_in
entity Q937857
action intersection
action find_reverse
entity Q2736
relation P425
action find_reverse
entity Q4412527
relation P425
['Q937857', 'P425', 'Q2736'] ['Q937857', 'P425', 'Q4412527']
ASK WHERE { resource:Q937857 property:P425 resource:Q2736 . resource:Q937857 property:P425 resource:Q4412527 }
association football player association football Northeast Grand Prix
action is_in
entity association football player
action intersection
action find_reverse
entity association football
relation field of this occupation
action find_reverse
entity Northeast Grand Prix
relation field of this occupation
['association football player', 'field of this occupation', 'association football'] ['association football player', 'field of this occupation', 'Northeast Grand Prix']
ASK WHERE { resource:association_football_player property:field_of_this_occupation resource:association_football . resource:association_football_player property:field_of_this_occupation resource:Northeast_Grand_Prix }
[]
sport
SYSTEM
YES and NO respectively
(Q937857,P425,Q2736) (Q937857,P425,Q4412527)
action is_in
entity Q937857
action intersection
action find_reverse
entity Q2736
relation P425
action find_reverse
entity Q4412527
relation P425
[ANSWER]
['Q937857', 'P425', 'Q2736'] ['Q937857', 'P425', 'Q4412527']
ASK WHERE { resource:Q937857 property:P425 resource:Q2736 . resource:Q937857 property:P425 resource:Q4412527 }
YES and NO respectively
action is_in
entity association football player
action intersection
action find_reverse
entity association football
relation field of this occupation
action find_reverse
entity Northeast Grand Prix
relation field of this occupation
['association football player', 'field of this occupation', 'association football'] ['association football player', 'field of this occupation', 'Northeast Grand Prix']
ASK WHERE { resource:association_football_player property:field_of_this_occupation resource:association_football . resource:association_football_player property:field_of_this_occupation resource:Northeast_Grand_Prix }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q8752
P37
Q34770 Q7275 Q56061
USER
How many languages are considered to be the official language of approximately the same number of states and administrative territories as Basque ?
(c(Q7275)|c(Q56061),P37,c(Q34770))
action count
action approx
action union
action find_reverse_tuple_counts
relation P37
type Q34770
type Q7275
action find_reverse_tuple_counts
relation P37
type Q34770
type Q56061
action count
action filter_multi_types
action find_reverse
entity Q8752
relation P37
type Q7275
type Q56061
[[{'concept': 'Q7275'}, {'concept': 'Q56061'}], 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?h ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?g ) ?m WHERE { { ?d property:P37 ?m . ?d rdf:type ontology:Q7275 . ?m rdf:type ontology:Q34770 } UNION { ?d property:P37 ?m . ?m rdf:type ontology:Q34770 . ?d rdf:type ontology:Q56061 } } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?l ) WHERE { ?n property:P37 resource:Q8752 . { VALUES ( ?x ) { ( ontology:Q7275 ) ( ontology:Q56061 ) } . ?n rdf:type ?x } } } . FILTER ( ?g = ?l ) }
Basque
action count
action approx
action union
action find_reverse_tuple_counts
relation official language
type language
type state
action find_reverse_tuple_counts
relation official language
type language
type administrative territorial entity
action count
action filter_multi_types
action find_reverse
entity Basque
relation official language
type state
type administrative territorial entity
[[{'concept': 'state'}, {'concept': 'administrative territorial entity'}], 'official language', {'concept': 'language'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?h ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?g ) ?m WHERE { { ?d property:official_language ?m . ?d rdf:type ontology:state . ?m rdf:type ontology:language } UNION { ?d property:official_language ?m . ?m rdf:type ontology:language . ?d rdf:type ontology:administrative_territorial_entity } } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?l ) WHERE { ?n property:official_language resource:Basque . { VALUES ( ?x ) { ( ontology:state ) ( ontology:administrative_territorial_entity ) } . ?n rdf:type ?x } } } . FILTER ( ?g = ?l ) }
[]
language state administrative territorial entity
SYSTEM
13
Q9056 Q33251 Q13211 Q3110592 Q36206 Q8752 Q36880 Q33976 Q35499 Q397 Q35726 Q8785 Q25164
(c(Q7275)|c(Q56061),P37,c(Q34770))
action count
action approx
action union
action find_reverse_tuple_counts
relation P37
type Q34770
type Q7275
action find_reverse_tuple_counts
relation P37
type Q34770
type Q56061
action count
action filter_multi_types
action find_reverse
entity Q8752
relation P37
type Q7275
type Q56061
[ANSWER]
[[{'concept': 'Q7275'}, {'concept': 'Q56061'}], 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?h ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?g ) ?m WHERE { { ?d property:P37 ?m . ?d rdf:type ontology:Q7275 . ?m rdf:type ontology:Q34770 } UNION { ?d property:P37 ?m . ?m rdf:type ontology:Q34770 . ?d rdf:type ontology:Q56061 } } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?l ) WHERE { ?n property:P37 resource:Q8752 . { VALUES ( ?x ) { ( ontology:Q7275 ) ( ontology:Q56061 ) } . ?n rdf:type ?x } } } . FILTER ( ?g = ?l ) }
Czech Church Slavonic Ruthenian written Chinese Lak Basque Bulgar language Sardinian language Old Church Slavonic Latin Etruscan Armenian Nynorsk
13
action count
action approx
action union
action find_reverse_tuple_counts
relation official language
type language
type state
action find_reverse_tuple_counts
relation official language
type language
type administrative territorial entity
action count
action filter_multi_types
action find_reverse
entity Basque
relation official language
type state
type administrative territorial entity
[[{'concept': 'state'}, {'concept': 'administrative territorial entity'}], 'official language', {'concept': 'language'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?h ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?g ) ?m WHERE { { ?d property:official_language ?m . ?d rdf:type ontology:state . ?m rdf:type ontology:language } UNION { ?d property:official_language ?m . ?m rdf:type ontology:language . ?d rdf:type ontology:administrative_territorial_entity } } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?l ) WHERE { ?n property:official_language resource:Basque . { VALUES ( ?x ) { ( ontology:state ) ( ontology:administrative_territorial_entity ) } . ?n rdf:type ?x } } } . FILTER ( ?g = ?l ) }
[]