Simple Question (Direct)
Simple Question
Q5235735
P54
Q1194951
USER
Which national sports team is David Jones a member of ?
(Q5235735,P54,c(Q1194951))
action filter_type
action find
entity Q5235735
relation P54
type Q1194951
['Q5235735', 'P54', {'concept': 'Q1194951'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q1194951 . resource:Q5235735 property:P54 ?h }
David Jones
action filter_type
action find
entity David Jones
relation member of sports team
type national sports team
['David Jones', 'member of sports team', {'concept': 'national sports team'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:national_sports_team . resource:David_Jones property:member_of_sports_team ?h }
[]
national sports team
Q268208
SYSTEM
Australia national association football team
Q268208
(Q5235735,P54,c(Q1194951))
action filter_type
action find
entity Q5235735
relation P54
type Q1194951
The [ANSWER] is David Jones a member of
['Q5235735', 'P54', {'concept': 'Q1194951'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q1194951 . resource:Q5235735 property:P54 ?h }
Australia national association football team
The Australia national association football team is David Jones a member of
Australia national association football team
action filter_type
action find
entity David Jones
relation member of sports team
type national sports team
['David Jones', 'member of sports team', {'concept': 'national sports team'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:national_sports_team . resource:David_Jones property:member_of_sports_team ?h }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5235735
P734
Q82799
USER
Who has the surname that person ?
(Q268208,P734,c(Q82799))
action filter_type
action find
entity Q5235735
relation P734
type Q82799
['Q268208', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q82799 . resource:Q5235735 property:P734 ?a }
David Jones
action filter_type
action find
entity David Jones
relation family name
type name
['Australia national association football team', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:name . resource:David_Jones property:family_name ?a }
[]
name
Q59853
SYSTEM
Jones
Q59853
(Q268208,P734,c(Q82799))
action filter_type
action find
entity Q5235735
relation P734
type Q82799
[ANSWER] has the surname that person
['Q268208', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q82799 . resource:Q5235735 property:P734 ?a }
Jones
Jones has the surname that person
Jones
action filter_type
action find
entity David Jones
relation family name
type name
['Australia national association football team', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:name . resource:David_Jones property:family_name ?a }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P361
Q8436 Q9332 Q82799
USER
Which names are parts of exactly 1 families or behaviors ?
(c(Q82799),P361,c(Q8436)|c(Q9332))
action equal
action union
action find_tuple_counts
relation P361
type Q82799
type Q8436
action find_tuple_counts
relation P361
type Q82799
type Q9332
value 1
[{'concept': 'Q82799'}, 'P361', [{'concept': 'Q8436'}, {'concept': 'Q9332'}]]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?r ) AS ?c ) WHERE { ?r rdf:type ?f . VALUES ( ?f ) { ( ontology:Q8436 ) ( ontology:Q9332 ) } } GROUP BY ?q } . FILTER ( ?c = 1 ) }
action equal
action union
action find_tuple_counts
relation part of
type name
type family
action find_tuple_counts
relation part of
type name
type behavior
value 1
[{'concept': 'name'}, 'part of', [{'concept': 'family'}, {'concept': 'behavior'}]]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?r ) AS ?c ) WHERE { ?r rdf:type ?f . VALUES ( ?f ) { ( ontology:family ) ( ontology:behavior ) } } GROUP BY ?q } . FILTER ( ?c = 1 ) }
[]
family behavior name
Q235598 Q742083 Q382004
SYSTEM
Piso, Princes of Paliano, Afa-Negus
Q235598 Q742083 Q382004
(c(Q82799),P361,c(Q8436)|c(Q9332))
action equal
action union
action find_tuple_counts
relation P361
type Q82799
type Q8436
action find_tuple_counts
relation P361
type Q82799
type Q9332
value 1
[ANSWERS] are parts of exactly 1 families or behaviors
[{'concept': 'Q82799'}, 'P361', [{'concept': 'Q8436'}, {'concept': 'Q9332'}]]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?r ) AS ?c ) WHERE { ?r rdf:type ?f . VALUES ( ?f ) { ( ontology:Q8436 ) ( ontology:Q9332 ) } } GROUP BY ?q } . FILTER ( ?c = 1 ) }
Piso Princes of Paliano Afa-Negus
Piso, Princes of Paliano and Afa-Negus are parts of exactly 1 families or behaviors
Piso Princes of Paliano Afa-Negus
action equal
action union
action find_tuple_counts
relation part of
type name
type family
action find_tuple_counts
relation part of
type name
type behavior
value 1
[{'concept': 'name'}, 'part of', [{'concept': 'family'}, {'concept': 'behavior'}]]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?r ) AS ?c ) WHERE { ?r rdf:type ?f . VALUES ( ?f ) { ( ontology:family ) ( ontology:behavior ) } } GROUP BY ?q } . FILTER ( ?c = 1 ) }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q21901987 Q268208
P1532 P17
Q1048835
USER
Which political territories did Australia national association football team play for and are Sandfly Creek situated in ?
AND((Q268208,P1532,c(Q1048835)), (Q21901987,P17,c(Q1048835)))
action filter_type
action intersection
action find
entity Q268208
relation P1532
action find
entity Q21901987
relation P17
type Q1048835
{'AND': [['Q268208', 'P1532', {'concept': 'Q1048835'}], ['Q21901987', 'P17', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?p WHERE { resource:Q268208 property:P1532 ?p . resource:Q21901987 property:P17 ?p . ?p rdf:type ontology:Q1048835 }
Sandfly Creek Australia national association football team
action filter_type
action intersection
action find
entity Australia national association football team
relation country for sport
action find
entity Sandfly Creek
relation country
type political territorial entity
{'AND': [['Australia national association football team', 'country for sport', {'concept': 'political territorial entity'}], ['Sandfly Creek', 'country', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?p WHERE { resource:Australia_national_association_football_team property:country_for_sport ?p . resource:Sandfly_Creek property:country ?p . ?p rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q408
SYSTEM
Australia
Q408
AND((Q268208,P1532,c(Q1048835)), (Q21901987,P17,c(Q1048835)))
action filter_type
action intersection
action find
entity Q268208
relation P1532
action find
entity Q21901987
relation P17
type Q1048835
[ANSWER] national association football team played in [ANSWER]
{'AND': [['Q268208', 'P1532', {'concept': 'Q1048835'}], ['Q21901987', 'P17', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?p WHERE { resource:Q268208 property:P1532 ?p . resource:Q21901987 property:P17 ?p . ?p rdf:type ontology:Q1048835 }
Australia
Australia national association football team played in Australia
Australia
action filter_type
action intersection
action find
entity Australia national association football team
relation country for sport
action find
entity Sandfly Creek
relation country
type political territorial entity
{'AND': [['Australia national association football team', 'country for sport', {'concept': 'political territorial entity'}], ['Sandfly Creek', 'country', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?p WHERE { resource:Australia_national_association_football_team property:country_for_sport ?p . resource:Sandfly_Creek property:country ?p . ?p rdf:type ontology:political_territorial_entity }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q408 Q115 Q1029
P530
Q15617994
USER
Does Australia have diplomatic relations with Ethiopia and Mozambique ?
(Q408,P530,Q115) (Q408,P530,Q1029)
action is_in
entity Q408
action intersection
action find_reverse
entity Q115
relation P530
action find_reverse
entity Q1029
relation P530
['Q408', 'P530', 'Q115'] ['Q408', 'P530', 'Q1029']
ASK WHERE { resource:Q408 property:P530 resource:Q115 . resource:Q408 property:P530 resource:Q1029 }
Australia Ethiopia Mozambique
action is_in
entity Australia
action intersection
action find_reverse
entity Ethiopia
relation diplomatic relation
action find_reverse
entity Mozambique
relation diplomatic relation
['Australia', 'diplomatic relation', 'Ethiopia'] ['Australia', 'diplomatic relation', 'Mozambique']
ASK WHERE { resource:Australia property:diplomatic_relation resource:Ethiopia . resource:Australia property:diplomatic_relation resource:Mozambique }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q408,P530,Q115) (Q408,P530,Q1029)
action is_in
entity Q408
action intersection
action find_reverse
entity Q115
relation P530
action find_reverse
entity Q1029
relation P530
[ANSWER]
['Q408', 'P530', 'Q115'] ['Q408', 'P530', 'Q1029']
ASK WHERE { resource:Q408 property:P530 resource:Q115 . resource:Q408 property:P530 resource:Q1029 }
Yes
action is_in
entity Australia
action intersection
action find_reverse
entity Ethiopia
relation diplomatic relation
action find_reverse
entity Mozambique
relation diplomatic relation
['Australia', 'diplomatic relation', 'Ethiopia'] ['Australia', 'diplomatic relation', 'Mozambique']
ASK WHERE { resource:Australia property:diplomatic_relation resource:Ethiopia . resource:Australia property:diplomatic_relation resource:Mozambique }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q1048835 Q15617994
USER
How many administrative territories have diplomatic relations with exactly 11 political territories ?
(c(Q15617994),P530,c(Q1048835))
action count
action equal
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
value 11
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?u ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?q ) AS ?r ) WHERE { ?n property:P530 ?q . ?q rdf:type ontology:Q1048835 . ?n rdf:type ontology:Q15617994 } GROUP BY ?n } . FILTER ( ?r = 11 ) }
action count
action equal
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
value 11
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?u ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?q ) AS ?r ) WHERE { ?n property:diplomatic_relation ?q . ?q rdf:type ontology:political_territorial_entity . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?n } . FILTER ( ?r = 11 ) }
[]
political territorial entity designation for an administrative territorial entity
SYSTEM
1
Q230
(c(Q15617994),P530,c(Q1048835))
action count
action equal
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
value 11
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?u ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?q ) AS ?r ) WHERE { ?n property:P530 ?q . ?q rdf:type ontology:Q1048835 . ?n rdf:type ontology:Q15617994 } GROUP BY ?n } . FILTER ( ?r = 11 ) }
Georgia
1
action count
action equal
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
value 11
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?u ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?q ) AS ?r ) WHERE { ?n property:diplomatic_relation ?q . ?q rdf:type ontology:political_territorial_entity . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?n } . FILTER ( ?r = 11 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q408
P127
Q43229
USER
Which organization is owned by Australia ?
(c(Q43229),P127,Q408)
action filter_type
action find_reverse
entity Q408
relation P127
type Q43229
[{'concept': 'Q43229'}, 'P127', 'Q408']
SELECT DISTINCT ?c WHERE { ?c property:P127 resource:Q408 . ?c rdf:type ontology:Q43229 }
Australia
action filter_type
action find_reverse
entity Australia
relation owned by
type organization
[{'concept': 'organization'}, 'owned by', 'Australia']
SELECT DISTINCT ?c WHERE { ?c property:owned_by resource:Australia . ?c rdf:type ontology:organization }
[]
organization
Q7548740
SYSTEM
Snowy Hydro
Q7548740
(c(Q43229),P127,Q408)
action filter_type
action find_reverse
entity Q408
relation P127
type Q43229
[ANSWER] is owned by Australia
[{'concept': 'Q43229'}, 'P127', 'Q408']
SELECT DISTINCT ?c WHERE { ?c property:P127 resource:Q408 . ?c rdf:type ontology:Q43229 }
Snowy Hydro
Snowy Hydro is owned by Australia
Snowy Hydro
action filter_type
action find_reverse
entity Australia
relation owned by
type organization
[{'concept': 'organization'}, 'owned by', 'Australia']
SELECT DISTINCT ?c WHERE { ?c property:owned_by resource:Australia . ?c rdf:type ontology:organization }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q408
P85
Q7725634
USER
What is the national anthem of that political territory ?
(Q7548740,P85,c(Q7725634))
action filter_type
action find
entity Q408
relation P85
type Q7725634
['Q7548740', 'P85', {'concept': 'Q7725634'}]
SELECT DISTINCT ?r WHERE { resource:Q408 property:P85 ?r . ?r rdf:type ontology:Q7725634 }
Australia
action filter_type
action find
entity Australia
relation anthem
type literary work
['Snowy Hydro', 'anthem', {'concept': 'literary work'}]
SELECT DISTINCT ?r WHERE { resource:Australia property:anthem ?r . ?r rdf:type ontology:literary_work }
[]
literary work
Q40807
SYSTEM
God Save the Queen
Q40807
(Q7548740,P85,c(Q7725634))
action filter_type
action find
entity Q408
relation P85
type Q7725634
The national anthem of that political territory is the [ANSWER]
['Q7548740', 'P85', {'concept': 'Q7725634'}]
SELECT DISTINCT ?r WHERE { resource:Q408 property:P85 ?r . ?r rdf:type ontology:Q7725634 }
God Save the Queen
The national anthem of that political territory is the God Save the Queen
God Save the Queen
action filter_type
action find
entity Australia
relation anthem
type literary work
['Snowy Hydro', 'anthem', {'concept': 'literary work'}]
SELECT DISTINCT ?r WHERE { resource:Australia property:anthem ?r . ?r rdf:type ontology:literary_work }
[]