Simple Question (Direct)
Simple Question
Q16091709
P106
Q12737077
USER
Which occupation is the profession of Joaquim Albino ?
(Q16091709,P106,c(Q12737077))
action filter_type
action find
entity Q16091709
relation P106
type Q12737077
['Q16091709', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?l WHERE { resource:Q16091709 property:P106 ?l . ?l rdf:type ontology:Q12737077 }
Joaquim Albino
action filter_type
action find
entity Joaquim Albino
relation occupation
type occupation
['Joaquim Albino', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?l WHERE { resource:Joaquim_Albino property:occupation ?l . ?l rdf:type ontology:occupation }
[]
occupation
Q937857
SYSTEM
association football player
Q937857
(Q16091709,P106,c(Q12737077))
action filter_type
action find
entity Q16091709
relation P106
type Q12737077
As [ANSWER] is the profession of Joaquim Albino
['Q16091709', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?l WHERE { resource:Q16091709 property:P106 ?l . ?l rdf:type ontology:Q12737077 }
association football player
As association football player is the profession of Joaquim Albino
association football player
action filter_type
action find
entity Joaquim Albino
relation occupation
type occupation
['Joaquim Albino', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?l WHERE { resource:Joaquim_Albino property:occupation ?l . ?l rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q16091709
P641
Q349
USER
What did that person participate in ?
(Q937857,P641,c(Q349))
action filter_type
action find
entity Q16091709
relation P641
type Q349
['Q937857', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?r WHERE { resource:Q16091709 property:P641 ?r . ?r rdf:type ontology:Q349 }
Joaquim Albino
action filter_type
action find
entity Joaquim Albino
relation sport
type sport
['association football player', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?r WHERE { resource:Joaquim_Albino property:sport ?r . ?r rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q937857,P641,c(Q349))
action filter_type
action find
entity Q16091709
relation P641
type Q349
That person participated in [ANSWER]
['Q937857', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?r WHERE { resource:Q16091709 property:P641 ?r . ?r rdf:type ontology:Q349 }
association football
That person participated in association football
association football
action filter_type
action find
entity Joaquim Albino
relation sport
type sport
['association football player', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?r WHERE { resource:Joaquim_Albino property:sport ?r . ?r rdf:type ontology:sport }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q937857
P106
Q874405 Q20724701
USER
How many social groups or city or town in Armenias have the profession of association football player ?
(c(Q874405),P106,Q937857) (c(Q20724701),P106,Q937857)
action count
action union
action filter_type
action find_reverse
entity Q937857
relation P106
type Q874405
action filter_type
action find_reverse
entity Q937857
relation P106
type Q20724701
[{'concept': 'Q874405'}, 'P106', 'Q937857'] [{'concept': 'Q20724701'}, 'P106', 'Q937857']
SELECT DISTINCT ( COUNT ( ?q ) AS ?a ) WHERE { { ?q rdf:type ontology:Q874405 . ?q property:P106 resource:Q937857 } UNION { ?q property:P106 resource:Q937857 . ?q rdf:type ontology:Q20724701 } }
association football player
action count
action union
action filter_type
action find_reverse
entity association football player
relation occupation
type social group
action filter_type
action find_reverse
entity association football player
relation occupation
type city or town in Armenia
[{'concept': 'social group'}, 'occupation', 'association football player'] [{'concept': 'city or town in Armenia'}, 'occupation', 'association football player']
SELECT DISTINCT ( COUNT ( ?q ) AS ?a ) WHERE { { ?q rdf:type ontology:social_group . ?q property:occupation resource:association_football_player } UNION { ?q property:occupation resource:association_football_player . ?q rdf:type ontology:city_or_town_in_Armenia } }
[]
social group city or town in Armenia
SYSTEM
2
Q3752378 Q2817360
(c(Q874405),P106,Q937857) (c(Q20724701),P106,Q937857)
action count
action union
action filter_type
action find_reverse
entity Q937857
relation P106
type Q874405
action filter_type
action find_reverse
entity Q937857
relation P106
type Q20724701
[ANSWER]
[{'concept': 'Q874405'}, 'P106', 'Q937857'] [{'concept': 'Q20724701'}, 'P106', 'Q937857']
SELECT DISTINCT ( COUNT ( ?q ) AS ?a ) WHERE { { ?q rdf:type ontology:Q874405 . ?q property:P106 resource:Q937857 } UNION { ?q property:P106 resource:Q937857 . ?q rdf:type ontology:Q20724701 } }
Fratelli Céspedes Masis Voskanyan
2
action count
action union
action filter_type
action find_reverse
entity association football player
relation occupation
type social group
action filter_type
action find_reverse
entity association football player
relation occupation
type city or town in Armenia
[{'concept': 'social group'}, 'occupation', 'association football player'] [{'concept': 'city or town in Armenia'}, 'occupation', 'association football player']
SELECT DISTINCT ( COUNT ( ?q ) AS ?a ) WHERE { { ?q rdf:type ontology:social_group . ?q property:occupation resource:association_football_player } UNION { ?q property:occupation resource:association_football_player . ?q rdf:type ontology:city_or_town_in_Armenia } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P366
Q349 Q3084961 Q2235308
USER
Which sports are considered as the main functionality of max number of product linings or ship types ?
(c(Q3084961)|c(Q2235308),P366,c(Q349))
action argmax
action union
action find_reverse_tuple_counts
relation P366
type Q349
type Q3084961
action find_reverse_tuple_counts
relation P366
type Q349
type Q2235308
[[{'concept': 'Q3084961'}, {'concept': 'Q2235308'}], 'P366', {'concept': 'Q349'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?q ) ?k WHERE { VALUES ( ?i ) { ( ontology:Q3084961 ) ( ontology:Q2235308 ) } . ?u rdf:type ?i } GROUP BY ?k } . FILTER ( ?q = ?r ) . { SELECT DISTINCT ( MAX ( ?c ) AS ?r ) { SELECT DISTINCT ( COUNT ( ?y ) AS ?c ) ?l WHERE { VALUES ( ?o ) { ( ontology:Q3084961 ) ( ontology:Q2235308 ) } . ?y rdf:type ?o } GROUP BY ?l } } }
action argmax
action union
action find_reverse_tuple_counts
relation use
type sport
type product lining
action find_reverse_tuple_counts
relation use
type sport
type ship type
[[{'concept': 'product lining'}, {'concept': 'ship type'}], 'use', {'concept': 'sport'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?q ) ?k WHERE { VALUES ( ?i ) { ( ontology:product_lining ) ( ontology:ship_type ) } . ?u rdf:type ?i } GROUP BY ?k } . FILTER ( ?q = ?r ) . { SELECT DISTINCT ( MAX ( ?c ) AS ?r ) { SELECT DISTINCT ( COUNT ( ?y ) AS ?c ) ?l WHERE { VALUES ( ?o ) { ( ontology:product_lining ) ( ontology:ship_type ) } . ?y rdf:type ?o } GROUP BY ?l } } }
[]
sport product lining ship type
Q1875777 Q61065
SYSTEM
air racing, water sport
Q1875777 Q61065
(c(Q3084961)|c(Q2235308),P366,c(Q349))
action argmax
action union
action find_reverse_tuple_counts
relation P366
type Q349
type Q3084961
action find_reverse_tuple_counts
relation P366
type Q349
type Q2235308
[ANSWERS] are considered as the main functionality of max number of product linings or ship types
[[{'concept': 'Q3084961'}, {'concept': 'Q2235308'}], 'P366', {'concept': 'Q349'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?q ) ?k WHERE { VALUES ( ?i ) { ( ontology:Q3084961 ) ( ontology:Q2235308 ) } . ?u rdf:type ?i } GROUP BY ?k } . FILTER ( ?q = ?r ) . { SELECT DISTINCT ( MAX ( ?c ) AS ?r ) { SELECT DISTINCT ( COUNT ( ?y ) AS ?c ) ?l WHERE { VALUES ( ?o ) { ( ontology:Q3084961 ) ( ontology:Q2235308 ) } . ?y rdf:type ?o } GROUP BY ?l } } }
air racing water sport
Air racing and water sport are considered as the main functionality of max number of product linings or ship types
air racing water sport
action argmax
action union
action find_reverse_tuple_counts
relation use
type sport
type product lining
action find_reverse_tuple_counts
relation use
type sport
type ship type
[[{'concept': 'product lining'}, {'concept': 'ship type'}], 'use', {'concept': 'sport'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?q ) ?k WHERE { VALUES ( ?i ) { ( ontology:product_lining ) ( ontology:ship_type ) } . ?u rdf:type ?i } GROUP BY ?k } . FILTER ( ?q = ?r ) . { SELECT DISTINCT ( MAX ( ?c ) AS ?r ) { SELECT DISTINCT ( COUNT ( ?y ) AS ?c ) ?l WHERE { VALUES ( ?o ) { ( ontology:product_lining ) ( ontology:ship_type ) } . ?y rdf:type ?o } GROUP BY ?l } } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q16091709
P19
Q56061
USER
Which administrative territory was Joaquim Albino born in ?
(Q16091709,P19,c(Q56061))
action filter_type
action find
entity Q16091709
relation P19
type Q56061
['Q16091709', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?u WHERE { resource:Q16091709 property:P19 ?u . ?u rdf:type ontology:Q56061 }
Joaquim Albino
action filter_type
action find
entity Joaquim Albino
relation place of birth
type administrative territorial entity
['Joaquim Albino', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:Joaquim_Albino property:place_of_birth ?u . ?u rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q8678
SYSTEM
Rio de Janeiro
Q8678
(Q16091709,P19,c(Q56061))
action filter_type
action find
entity Q16091709
relation P19
type Q56061
Joaquim Albino was born in [ANSWER]
['Q16091709', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?u WHERE { resource:Q16091709 property:P19 ?u . ?u rdf:type ontology:Q56061 }
Rio de Janeiro
Joaquim Albino was born in Rio de Janeiro
Rio de Janeiro
action filter_type
action find
entity Joaquim Albino
relation place of birth
type administrative territorial entity
['Joaquim Albino', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:Joaquim_Albino property:place_of_birth ?u . ?u rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q8678
P931
Q123705
USER
Which neighborhood is served by that administrative territory ?
(c(Q123705),P931,Q8678)
action filter_type
action find_reverse
entity Q8678
relation P931
type Q123705
[{'concept': 'Q123705'}, 'P931', 'Q8678']
SELECT DISTINCT ?u WHERE { ?u property:P931 resource:Q8678 . ?u rdf:type ontology:Q123705 }
Rio de Janeiro
action filter_type
action find_reverse
entity Rio de Janeiro
relation place served by airport
type neighborhood
[{'concept': 'neighborhood'}, 'place served by airport', 'Rio de Janeiro']
SELECT DISTINCT ?u WHERE { ?u property:place_served_by_airport resource:Rio_de_Janeiro . ?u rdf:type ontology:neighborhood }
[]
neighborhood
Q1763149
SYSTEM
Afonsos Air Force Base
Q1763149
(c(Q123705),P931,Q8678)
action filter_type
action find_reverse
entity Q8678
relation P931
type Q123705
[ANSWER] is served by that administrative territory
[{'concept': 'Q123705'}, 'P931', 'Q8678']
SELECT DISTINCT ?u WHERE { ?u property:P931 resource:Q8678 . ?u rdf:type ontology:Q123705 }
Afonsos Air Force Base
Afonsos Air Force Base is served by that administrative territory
Afonsos Air Force Base
action filter_type
action find_reverse
entity Rio de Janeiro
relation place served by airport
type neighborhood
[{'concept': 'neighborhood'}, 'place served by airport', 'Rio de Janeiro']
SELECT DISTINCT ?u WHERE { ?u property:place_served_by_airport resource:Rio_de_Janeiro . ?u rdf:type ontology:neighborhood }
[]