Simple Question (Direct)
Simple Question
Q7025866
P54
Q1194951
USER
Which national sports team is Nicholas McCreath a member of ?
(Q7025866,P54,c(Q1194951))
action filter_type
action find
entity Q7025866
relation P54
type Q1194951
['Q7025866', 'P54', {'concept': 'Q1194951'}]
SELECT DISTINCT ?y WHERE { resource:Q7025866 property:P54 ?y . ?y rdf:type ontology:Q1194951 }
Nicholas McCreath
action filter_type
action find
entity Nicholas McCreath
relation member of sports team
type national sports team
['Nicholas McCreath', 'member of sports team', {'concept': 'national sports team'}]
SELECT DISTINCT ?y WHERE { resource:Nicholas_McCreath property:member_of_sports_team ?y . ?y rdf:type ontology:national_sports_team }
[]
national sports team
Q235399
SYSTEM
Jamaica national football team
Q235399
(Q7025866,P54,c(Q1194951))
action filter_type
action find
entity Q7025866
relation P54
type Q1194951
The [ANSWER] is Nicholas McCreath a member of
['Q7025866', 'P54', {'concept': 'Q1194951'}]
SELECT DISTINCT ?y WHERE { resource:Q7025866 property:P54 ?y . ?y rdf:type ontology:Q1194951 }
Jamaica national football team
The Jamaica national football team is Nicholas McCreath a member of
Jamaica national football team
action filter_type
action find
entity Nicholas McCreath
relation member of sports team
type national sports team
['Nicholas McCreath', 'member of sports team', {'concept': 'national sports team'}]
SELECT DISTINCT ?y WHERE { resource:Nicholas_McCreath property:member_of_sports_team ?y . ?y rdf:type ontology:national_sports_team }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q7025866
P69
Q1935049
USER
Which military school is that person an alumni of ?
(Q235399,P69,c(Q1935049))
action filter_type
action find
entity Q7025866
relation P69
type Q1935049
['Q235399', 'P69', {'concept': 'Q1935049'}]
SELECT DISTINCT ?z WHERE { resource:Q7025866 property:P69 ?z . ?z rdf:type ontology:Q1935049 }
Nicholas McCreath
action filter_type
action find
entity Nicholas McCreath
relation educated at
type military school
['Jamaica national football team', 'educated at', {'concept': 'military school'}]
SELECT DISTINCT ?z WHERE { resource:Nicholas_McCreath property:educated_at ?z . ?z rdf:type ontology:military_school }
[]
military school
Q635078
SYSTEM
United States Army War College
Q635078
(Q235399,P69,c(Q1935049))
action filter_type
action find
entity Q7025866
relation P69
type Q1935049
[ANSWER] is that person an alumni of
['Q235399', 'P69', {'concept': 'Q1935049'}]
SELECT DISTINCT ?z WHERE { resource:Q7025866 property:P69 ?z . ?z rdf:type ontology:Q1935049 }
United States Army War College
United States Army War College is that person an alumni of
United States Army War College
action filter_type
action find
entity Nicholas McCreath
relation educated at
type military school
['Jamaica national football team', 'educated at', {'concept': 'military school'}]
SELECT DISTINCT ?z WHERE { resource:Nicholas_McCreath property:educated_at ?z . ?z rdf:type ontology:military_school }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7025866
P106
Q12737077
USER
Which occupation is the profession of Nicholas McCreath ?
(Q7025866,P106,c(Q12737077))
action filter_type
action find
entity Q7025866
relation P106
type Q12737077
['Q7025866', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?m WHERE { resource:Q7025866 property:P106 ?m . ?m rdf:type ontology:Q12737077 }
Nicholas McCreath
action filter_type
action find
entity Nicholas McCreath
relation occupation
type occupation
['Nicholas McCreath', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?m WHERE { resource:Nicholas_McCreath property:occupation ?m . ?m rdf:type ontology:occupation }
[]
occupation
Q937857
SYSTEM
association football player
Q937857
(Q7025866,P106,c(Q12737077))
action filter_type
action find
entity Q7025866
relation P106
type Q12737077
Player [ANSWER] is the profession of Nicholas McCreath
['Q7025866', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?m WHERE { resource:Q7025866 property:P106 ?m . ?m rdf:type ontology:Q12737077 }
association football player
Player association football player is the profession of Nicholas McCreath
association football player
action filter_type
action find
entity Nicholas McCreath
relation occupation
type occupation
['Nicholas McCreath', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?m WHERE { resource:Nicholas_McCreath property:occupation ?m . ?m rdf:type ontology:occupation }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q4881669
Q12737077
USER
And also tell me about Bektas Beknazarov?
(Q4881669,P106,c(Q12737077))
action filter_type
action find
entity Q4881669
relation P106
type Q12737077
['Q4881669', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?j WHERE { resource:Q4881669 property:P106 ?j . ?j rdf:type ontology:Q12737077 }
Bektas Beknazarov
action filter_type
action find
entity Bektas Beknazarov
relation occupation
type occupation
['Bektas Beknazarov', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?j WHERE { resource:Bektas_Beknazarov property:occupation ?j . ?j rdf:type ontology:occupation }
[]
occupation
Q82955
SYSTEM
politician
Q82955
(Q4881669,P106,c(Q12737077))
action filter_type
action find
entity Q4881669
relation P106
type Q12737077
[ANSWER]
['Q4881669', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?j WHERE { resource:Q4881669 property:P106 ?j . ?j rdf:type ontology:Q12737077 }
politician
politician
action filter_type
action find
entity Bektas Beknazarov
relation occupation
type occupation
['Bektas Beknazarov', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?j WHERE { resource:Bektas_Beknazarov property:occupation ?j . ?j rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q235399
P466
Q483110
USER
What is occupied by Jamaica national football team ?
(c(Q483110),P466,Q235399)
action filter_type
action find_reverse
entity Q235399
relation P466
type Q483110
[{'concept': 'Q483110'}, 'P466', 'Q235399']
SELECT DISTINCT ?c WHERE { ?c property:P466 resource:Q235399 . ?c rdf:type ontology:Q483110 }
Jamaica national football team
action filter_type
action find_reverse
entity Jamaica national football team
relation occupant
type stadium
[{'concept': 'stadium'}, 'occupant', 'Jamaica national football team']
SELECT DISTINCT ?c WHERE { ?c property:occupant resource:Jamaica_national_football_team . ?c rdf:type ontology:stadium }
[]
stadium
Q1661072
SYSTEM
Independence Park
Q1661072
(c(Q483110),P466,Q235399)
action filter_type
action find_reverse
entity Q235399
relation P466
type Q483110
[ANSWER] is occupied by Jamaica national football team
[{'concept': 'Q483110'}, 'P466', 'Q235399']
SELECT DISTINCT ?c WHERE { ?c property:P466 resource:Q235399 . ?c rdf:type ontology:Q483110 }
Independence Park
Independence Park is occupied by Jamaica national football team
Independence Park
action filter_type
action find_reverse
entity Jamaica national football team
relation occupant
type stadium
[{'concept': 'stadium'}, 'occupant', 'Jamaica national football team']
SELECT DISTINCT ?c WHERE { ?c property:occupant resource:Jamaica_national_football_team . ?c rdf:type ontology:stadium }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1661072
P17
Q1048835
USER
Which political territory does that stadium belong to ?
(Q1661072,P17,c(Q1048835))
action filter_type
action find
entity Q1661072
relation P17
type Q1048835
['Q1661072', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?d WHERE { resource:Q1661072 property:P17 ?d . ?d rdf:type ontology:Q1048835 }
Independence Park
action filter_type
action find
entity Independence Park
relation country
type political territorial entity
['Independence Park', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Independence_Park property:country ?d . ?d rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q766
SYSTEM
Jamaica
Q766
(Q1661072,P17,c(Q1048835))
action filter_type
action find
entity Q1661072
relation P17
type Q1048835
That stadium belongs to the [ANSWER]
['Q1661072', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?d WHERE { resource:Q1661072 property:P17 ?d . ?d rdf:type ontology:Q1048835 }
Jamaica
That stadium belongs to the Jamaica
Jamaica
action filter_type
action find
entity Independence Park
relation country
type political territorial entity
['Independence Park', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Independence_Park property:country ?d . ?d rdf:type ontology:political_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Indirect
P85
Q7725634 Q484692 Q1048835
USER
Which political territories have more number of literary works and hymns as their national anthem than that political territory ?
(c(Q1048835),P85,c(Q7725634)|c(Q484692))
action greater
action union
action find_tuple_counts
relation P85
type Q1048835
type Q7725634
action find_tuple_counts
relation P85
type Q1048835
type Q484692
action count
action filter_multi_types
action find
entity Q766
relation P85
type Q7725634
type Q484692
[{'concept': 'Q1048835'}, 'P85', [{'concept': 'Q7725634'}, {'concept': 'Q484692'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?k ) ?g WHERE { { ?m rdf:type ontology:Q7725634 . ?g rdf:type ontology:Q1048835 . ?g property:P85 ?m } UNION { ?g property:P85 ?m . ?g rdf:type ontology:Q1048835 . ?m rdf:type ontology:Q484692 } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?c ) WHERE { resource:Q766 property:P85 ?l . { { ?l rdf:type ontology:Q7725634 } UNION { ?l rdf:type ontology:Q484692 } } } } . FILTER ( ?k > ?c ) }
action greater
action union
action find_tuple_counts
relation anthem
type political territorial entity
type literary work
action find_tuple_counts
relation anthem
type political territorial entity
type hymn
action count
action filter_multi_types
action find
entity Jamaica
relation anthem
type literary work
type hymn
[{'concept': 'political territorial entity'}, 'anthem', [{'concept': 'literary work'}, {'concept': 'hymn'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?k ) ?g WHERE { { ?m rdf:type ontology:literary_work . ?g rdf:type ontology:political_territorial_entity . ?g property:anthem ?m } UNION { ?g property:anthem ?m . ?g rdf:type ontology:political_territorial_entity . ?m rdf:type ontology:hymn } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?c ) WHERE { resource:Jamaica property:anthem ?l . { { ?l rdf:type ontology:literary_work } UNION { ?l rdf:type ontology:hymn } } } } . FILTER ( ?k > ?c ) }
[]
literary work hymn political territorial entity
SYSTEM
5
Q769 Q766 Q781 Q35 Q408
(c(Q1048835),P85,c(Q7725634)|c(Q484692))
action greater
action union
action find_tuple_counts
relation P85
type Q1048835
type Q7725634
action find_tuple_counts
relation P85
type Q1048835
type Q484692
action count
action filter_multi_types
action find
entity Q766
relation P85
type Q7725634
type Q484692
[ANSWER]
[{'concept': 'Q1048835'}, 'P85', [{'concept': 'Q7725634'}, {'concept': 'Q484692'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?k ) ?g WHERE { { ?m rdf:type ontology:Q7725634 . ?g rdf:type ontology:Q1048835 . ?g property:P85 ?m } UNION { ?g property:P85 ?m . ?g rdf:type ontology:Q1048835 . ?m rdf:type ontology:Q484692 } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?c ) WHERE { resource:Q766 property:P85 ?l . { { ?l rdf:type ontology:Q7725634 } UNION { ?l rdf:type ontology:Q484692 } } } } . FILTER ( ?k > ?c ) }
Grenada Jamaica Antigua and Barbuda Denmark Australia
5
action greater
action union
action find_tuple_counts
relation anthem
type political territorial entity
type literary work
action find_tuple_counts
relation anthem
type political territorial entity
type hymn
action count
action filter_multi_types
action find
entity Jamaica
relation anthem
type literary work
type hymn
[{'concept': 'political territorial entity'}, 'anthem', [{'concept': 'literary work'}, {'concept': 'hymn'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?k ) ?g WHERE { { ?m rdf:type ontology:literary_work . ?g rdf:type ontology:political_territorial_entity . ?g property:anthem ?m } UNION { ?g property:anthem ?m . ?g rdf:type ontology:political_territorial_entity . ?m rdf:type ontology:hymn } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?c ) WHERE { resource:Jamaica property:anthem ?l . { { ?l rdf:type ontology:literary_work } UNION { ?l rdf:type ontology:hymn } } } } . FILTER ( ?k > ?c ) }
[]