Simple Question (Direct)
Simple Question
Q4963807
P106
Q12737077
USER
Which occupation is the profession of Brian Gallacher ?
(Q4963807,P106,c(Q12737077))
action filter_type
action find
entity Q4963807
relation P106
type Q12737077
['Q4963807', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?k WHERE { resource:Q4963807 property:P106 ?k . ?k rdf:type ontology:Q12737077 }
Brian Gallacher
action filter_type
action find
entity Brian Gallacher
relation occupation
type occupation
['Brian Gallacher', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?k WHERE { resource:Brian_Gallacher property:occupation ?k . ?k rdf:type ontology:occupation }
[]
occupation
Q937857
SYSTEM
association football player
Q937857
(Q4963807,P106,c(Q12737077))
action filter_type
action find
entity Q4963807
relation P106
type Q12737077
Player [ANSWER] is the profession of Brian Gallacher
['Q4963807', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?k WHERE { resource:Q4963807 property:P106 ?k . ?k rdf:type ontology:Q12737077 }
association football player
Player association football player is the profession of Brian Gallacher
association football player
action filter_type
action find
entity Brian Gallacher
relation occupation
type occupation
['Brian Gallacher', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?k WHERE { resource:Brian_Gallacher property:occupation ?k . ?k rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q4963807
P19
Q56061
USER
Which administrative territory was that person born at ?
(Q937857,P19,c(Q56061))
action filter_type
action find
entity Q4963807
relation P19
type Q56061
['Q937857', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?d WHERE { resource:Q4963807 property:P19 ?d . ?d rdf:type ontology:Q56061 }
Brian Gallacher
action filter_type
action find
entity Brian Gallacher
relation place of birth
type administrative territorial entity
['association football player', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Brian_Gallacher property:place_of_birth ?d . ?d rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q4093
SYSTEM
Glasgow
Q4093
(Q937857,P19,c(Q56061))
action filter_type
action find
entity Q4963807
relation P19
type Q56061
That person was born in [ANSWER]
['Q937857', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?d WHERE { resource:Q4963807 property:P19 ?d . ?d rdf:type ontology:Q56061 }
Glasgow
That person was born in Glasgow
Glasgow
action filter_type
action find
entity Brian Gallacher
relation place of birth
type administrative territorial entity
['association football player', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Brian_Gallacher property:place_of_birth ?d . ?d rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q4093
P609
Q83620
USER
Which thoroughfares have that administrative territory as their terminus location ?
(c(Q83620),P609,Q4093)
action filter_type
action find_reverse
entity Q4093
relation P609
type Q83620
[{'concept': 'Q83620'}, 'P609', 'Q4093']
SELECT DISTINCT ?b WHERE { ?b property:P609 resource:Q4093 . ?b rdf:type ontology:Q83620 }
Glasgow
action filter_type
action find_reverse
entity Glasgow
relation terminus location
type thoroughfare
[{'concept': 'thoroughfare'}, 'terminus location', 'Glasgow']
SELECT DISTINCT ?b WHERE { ?b property:terminus_location resource:Glasgow . ?b rdf:type ontology:thoroughfare }
[]
thoroughfare
Q6713923 Q476157
SYSTEM
M77 motorway, M80 motorway
Q6713923 Q476157
(c(Q83620),P609,Q4093)
action filter_type
action find_reverse
entity Q4093
relation P609
type Q83620
[ANSWERS] have that administrative territory as their terminus location
[{'concept': 'Q83620'}, 'P609', 'Q4093']
SELECT DISTINCT ?b WHERE { ?b property:P609 resource:Q4093 . ?b rdf:type ontology:Q83620 }
M77 motorway M80 motorway
M77 motorway and M80 motorway have that administrative territory as their terminus location
M77 motorway M80 motorway
action filter_type
action find_reverse
entity Glasgow
relation terminus location
type thoroughfare
[{'concept': 'thoroughfare'}, 'terminus location', 'Glasgow']
SELECT DISTINCT ?b WHERE { ?b property:terminus_location resource:Glasgow . ?b rdf:type ontology:thoroughfare }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q6713923 Q476157
P609
Q56061
USER
Which administrative territories are the destinations of M77 motorway and M80 motorway ?
(Q6713923,P609,c(Q56061)) (Q476157,P609,c(Q56061))
action union
action filter_type
action find
entity Q6713923
relation P609
type Q56061
action filter_type
action find
entity Q476157
relation P609
type Q56061
['Q6713923', 'P609', {'concept': 'Q56061'}] ['Q476157', 'P609', {'concept': 'Q56061'}]
SELECT DISTINCT ?p WHERE { { resource:Q6713923 property:P609 ?p . ?p rdf:type ontology:Q56061 } UNION { ?p rdf:type ontology:Q56061 . resource:Q476157 property:P609 ?p } }
M77 motorway M80 motorway
action union
action filter_type
action find
entity M77 motorway
relation terminus location
type administrative territorial entity
action filter_type
action find
entity M80 motorway
relation terminus location
type administrative territorial entity
['M77 motorway', 'terminus location', {'concept': 'administrative territorial entity'}] ['M80 motorway', 'terminus location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { { resource:M77_motorway property:terminus_location ?p . ?p rdf:type ontology:administrative_territorial_entity } UNION { ?p rdf:type ontology:administrative_territorial_entity . resource:M80_motorway property:terminus_location ?p } }
[]
administrative territorial entity
Q4093 Q4093
SYSTEM
Glasgow
Q4093 Q4093
(Q6713923,P609,c(Q56061)) (Q476157,P609,c(Q56061))
action union
action filter_type
action find
entity Q6713923
relation P609
type Q56061
action filter_type
action find
entity Q476157
relation P609
type Q56061
The destinations of M77 motorway and M 80 motorway are [ANSWER] and [ANSWER]
['Q6713923', 'P609', {'concept': 'Q56061'}] ['Q476157', 'P609', {'concept': 'Q56061'}]
SELECT DISTINCT ?p WHERE { { resource:Q6713923 property:P609 ?p . ?p rdf:type ontology:Q56061 } UNION { ?p rdf:type ontology:Q56061 . resource:Q476157 property:P609 ?p } }
Glasgow Glasgow
The destinations of M77 motorway and M 80 motorway are Glasgow and Glasgow
Glasgow Glasgow
action union
action filter_type
action find
entity M77 motorway
relation terminus location
type administrative territorial entity
action filter_type
action find
entity M80 motorway
relation terminus location
type administrative territorial entity
['M77 motorway', 'terminus location', {'concept': 'administrative territorial entity'}] ['M80 motorway', 'terminus location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { { resource:M77_motorway property:terminus_location ?p . ?p rdf:type ontology:administrative_territorial_entity } UNION { ?p rdf:type ontology:administrative_territorial_entity . resource:M80_motorway property:terminus_location ?p } }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q4093
P206
Q355304
USER
Which watercourse is located next to that administrative territory ?
(Q4093,P206,c(Q355304)) (Q4093,P206,c(Q355304))
action filter_type
action find
entity Q4093
relation P206
type Q355304
['Q4093', 'P206', {'concept': 'Q355304'}] ['Q4093', 'P206', {'concept': 'Q355304'}]
SELECT DISTINCT ?n WHERE { resource:Q4093 property:P206 ?n . ?n rdf:type ontology:Q355304 }
Glasgow
action filter_type
action find
entity Glasgow
relation located next to body of water
type watercourse
['Glasgow', 'located next to body of water', {'concept': 'watercourse'}] ['Glasgow', 'located next to body of water', {'concept': 'watercourse'}]
SELECT DISTINCT ?n WHERE { resource:Glasgow property:located_next_to_body_of_water ?n . ?n rdf:type ontology:watercourse }
[]
watercourse
Q19721
SYSTEM
Clyde
Q19721
(Q4093,P206,c(Q355304)) (Q4093,P206,c(Q355304))
action filter_type
action find
entity Q4093
relation P206
type Q355304
[ANSWER] is located next to that administrative territory
['Q4093', 'P206', {'concept': 'Q355304'}] ['Q4093', 'P206', {'concept': 'Q355304'}]
SELECT DISTINCT ?n WHERE { resource:Q4093 property:P206 ?n . ?n rdf:type ontology:Q355304 }
Clyde
Clyde is located next to that administrative territory
Clyde
action filter_type
action find
entity Glasgow
relation located next to body of water
type watercourse
['Glasgow', 'located next to body of water', {'concept': 'watercourse'}] ['Glasgow', 'located next to body of water', {'concept': 'watercourse'}]
SELECT DISTINCT ?n WHERE { resource:Glasgow property:located_next_to_body_of_water ?n . ?n rdf:type ontology:watercourse }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q2636018 Q937857
P425 P641
Q349
USER
Which sports are associated with the field of occupation association football player and were Marciano José do Nascimento a part of ?
AND((Q937857,P425,c(Q349)), (Q2636018,P641,c(Q349)))
action filter_type
action intersection
action find
entity Q937857
relation P425
action find
entity Q2636018
relation P641
type Q349
{'AND': [['Q937857', 'P425', {'concept': 'Q349'}], ['Q2636018', 'P641', {'concept': 'Q349'}]]}
SELECT DISTINCT ?r WHERE { resource:Q937857 property:P425 ?r . resource:Q2636018 property:P641 ?r . ?r rdf:type ontology:Q349 }
Marciano José do Nascimento association football player
action filter_type
action intersection
action find
entity association football player
relation field of this occupation
action find
entity Marciano José do Nascimento
relation sport
type sport
{'AND': [['association football player', 'field of this occupation', {'concept': 'sport'}], ['Marciano José do Nascimento', 'sport', {'concept': 'sport'}]]}
SELECT DISTINCT ?r WHERE { resource:association_football_player property:field_of_this_occupation ?r . resource:Marciano_José_do_Nascimento property:sport ?r . ?r rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
AND((Q937857,P425,c(Q349)), (Q2636018,P641,c(Q349)))
action filter_type
action intersection
action find
entity Q937857
relation P425
action find
entity Q2636018
relation P641
type Q349
Team [ANSWER] is associated with the field of occupation [ANSWER] player and were Marciano José do Nascimento a part of
{'AND': [['Q937857', 'P425', {'concept': 'Q349'}], ['Q2636018', 'P641', {'concept': 'Q349'}]]}
SELECT DISTINCT ?r WHERE { resource:Q937857 property:P425 ?r . resource:Q2636018 property:P641 ?r . ?r rdf:type ontology:Q349 }
association football
Team association football is associated with the field of occupation association football player and were Marciano José do Nascimento a part of
association football
action filter_type
action intersection
action find
entity association football player
relation field of this occupation
action find
entity Marciano José do Nascimento
relation sport
type sport
{'AND': [['association football player', 'field of this occupation', {'concept': 'sport'}], ['Marciano José do Nascimento', 'sport', {'concept': 'sport'}]]}
SELECT DISTINCT ?r WHERE { resource:association_football_player property:field_of_this_occupation ?r . resource:Marciano_José_do_Nascimento property:sport ?r . ?r rdf:type ontology:sport }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Indirect
P101
Q349 Q502895 Q43229
USER
Which sports do approximately the same number of people or organizations belong to as that sport ?
(c(Q502895)|c(Q43229),P101,c(Q349))
action approx
action union
action find_reverse_tuple_counts
relation P101
type Q349
type Q502895
action find_reverse_tuple_counts
relation P101
type Q349
type Q43229
action count
action filter_multi_types
action find_reverse
entity Q2736
relation P101
type Q502895
type Q43229
[[{'concept': 'Q502895'}, {'concept': 'Q43229'}], 'P101', {'concept': 'Q349'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?d ) AS ?z ) WHERE { { ?d property:P101 ?q . ?d rdf:type ontology:Q502895 . ?q rdf:type ontology:Q349 } UNION { ?d property:P101 ?q . ?q rdf:type ontology:Q349 . ?d rdf:type ontology:Q43229 } } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?y ) WHERE { ?x property:P101 resource:Q2736 . { { ?x rdf:type ontology:Q502895 } UNION { ?x rdf:type ontology:Q43229 } } } } . FILTER ( ?z = ?y ) }
action approx
action union
action find_reverse_tuple_counts
relation field of work
type sport
type common name
action find_reverse_tuple_counts
relation field of work
type sport
type organization
action count
action filter_multi_types
action find_reverse
entity association football
relation field of work
type common name
type organization
[[{'concept': 'common name'}, {'concept': 'organization'}], 'field of work', {'concept': 'sport'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?d ) AS ?z ) WHERE { { ?d property:field_of_work ?q . ?d rdf:type ontology:common_name . ?q rdf:type ontology:sport } UNION { ?d property:field_of_work ?q . ?q rdf:type ontology:sport . ?d rdf:type ontology:organization } } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?y ) WHERE { ?x property:field_of_work resource:association_football . { { ?x rdf:type ontology:common_name } UNION { ?x rdf:type ontology:organization } } } } . FILTER ( ?z = ?y ) }
[]
sport common name organization
Q31920 Q2736
SYSTEM
swimming, association football
Q31920 Q2736
(c(Q502895)|c(Q43229),P101,c(Q349))
action approx
action union
action find_reverse_tuple_counts
relation P101
type Q349
type Q502895
action find_reverse_tuple_counts
relation P101
type Q349
type Q43229
action count
action filter_multi_types
action find_reverse
entity Q2736
relation P101
type Q502895
type Q43229
The [ANSWERS] approximately the same number of people or organizations belong to as that sport
[[{'concept': 'Q502895'}, {'concept': 'Q43229'}], 'P101', {'concept': 'Q349'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?d ) AS ?z ) WHERE { { ?d property:P101 ?q . ?d rdf:type ontology:Q502895 . ?q rdf:type ontology:Q349 } UNION { ?d property:P101 ?q . ?q rdf:type ontology:Q349 . ?d rdf:type ontology:Q43229 } } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?y ) WHERE { ?x property:P101 resource:Q2736 . { { ?x rdf:type ontology:Q502895 } UNION { ?x rdf:type ontology:Q43229 } } } } . FILTER ( ?z = ?y ) }
swimming association football
The swimming and association football approximately the same number of people or organizations belong to as that sport
swimming association football
action approx
action union
action find_reverse_tuple_counts
relation field of work
type sport
type common name
action find_reverse_tuple_counts
relation field of work
type sport
type organization
action count
action filter_multi_types
action find_reverse
entity association football
relation field of work
type common name
type organization
[[{'concept': 'common name'}, {'concept': 'organization'}], 'field of work', {'concept': 'sport'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?d ) AS ?z ) WHERE { { ?d property:field_of_work ?q . ?d rdf:type ontology:common_name . ?q rdf:type ontology:sport } UNION { ?d property:field_of_work ?q . ?q rdf:type ontology:sport . ?d rdf:type ontology:organization } } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?y ) WHERE { ?x property:field_of_work resource:association_football . { { ?x rdf:type ontology:common_name } UNION { ?x rdf:type ontology:organization } } } } . FILTER ( ?z = ?y ) }
[]