Simple Question (Direct)
Simple Question
Q978381
P1344
Q15900616
USER
What event sequences did Lukas Hofer participate in ?
(Q978381,P1344,c(Q15900616))
action filter_type
action find
entity Q978381
relation P1344
type Q15900616
['Q978381', 'P1344', {'concept': 'Q15900616'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q15900616 . resource:Q978381 property:P1344 ?e }
Lukas Hofer
action filter_type
action find
entity Lukas Hofer
relation participant of
type event sequence
['Lukas Hofer', 'participant of', {'concept': 'event sequence'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:event_sequence . resource:Lukas_Hofer property:participant_of ?e }
[]
event sequence
Q9678 Q9674
SYSTEM
2014 Winter Olympics, 2010 Winter Olympics
Q9678 Q9674
(Q978381,P1344,c(Q15900616))
action filter_type
action find
entity Q978381
relation P1344
type Q15900616
Lukas Hofer participated in [ANSWERS]
['Q978381', 'P1344', {'concept': 'Q15900616'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q15900616 . resource:Q978381 property:P1344 ?e }
2014 Winter Olympics 2010 Winter Olympics
Lukas Hofer participated in 2014 Winter Olympics and 2010 Winter Olympics
2014 Winter Olympics 2010 Winter Olympics
action filter_type
action find
entity Lukas Hofer
relation participant of
type event sequence
['Lukas Hofer', 'participant of', {'concept': 'event sequence'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:event_sequence . resource:Lukas_Hofer property:participant_of ?e }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q978381
P27
Q15617994
USER
Which administrative territory is Lukas Hofer a civilian of ?
(Q978381,P27,c(Q15617994))
action filter_type
action find
entity Q978381
relation P27
type Q15617994
['Q978381', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { resource:Q978381 property:P27 ?q . ?q rdf:type ontology:Q15617994 }
Lukas Hofer
action filter_type
action find
entity Lukas Hofer
relation country of citizenship
type designation for an administrative territorial entity
['Lukas Hofer', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:Lukas_Hofer property:country_of_citizenship ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q38
SYSTEM
Italy
Q38
(Q978381,P27,c(Q15617994))
action filter_type
action find
entity Q978381
relation P27
type Q15617994
[ANSWER] is Lukas Hofer a civilian of
['Q978381', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { resource:Q978381 property:P27 ?q . ?q rdf:type ontology:Q15617994 }
Italy
Italy is Lukas Hofer a civilian of
Italy
action filter_type
action find
entity Lukas Hofer
relation country of citizenship
type designation for an administrative territorial entity
['Lukas Hofer', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:Lukas_Hofer property:country_of_citizenship ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q38
P85
Q7725634
USER
What is the national anthem of that administrative territory ?
(Q38,P85,c(Q7725634))
action filter_type
action find
entity Q38
relation P85
type Q7725634
['Q38', 'P85', {'concept': 'Q7725634'}]
SELECT DISTINCT ?g WHERE { resource:Q38 property:P85 ?g . ?g rdf:type ontology:Q7725634 }
Italy
action filter_type
action find
entity Italy
relation anthem
type literary work
['Italy', 'anthem', {'concept': 'literary work'}]
SELECT DISTINCT ?g WHERE { resource:Italy property:anthem ?g . ?g rdf:type ontology:literary_work }
[]
literary work
Q187
SYSTEM
Il Canto degli Italiani
Q187
(Q38,P85,c(Q7725634))
action filter_type
action find
entity Q38
relation P85
type Q7725634
The national anthem of that administrative territory is [ANSWER]
['Q38', 'P85', {'concept': 'Q7725634'}]
SELECT DISTINCT ?g WHERE { resource:Q38 property:P85 ?g . ?g rdf:type ontology:Q7725634 }
Il Canto degli Italiani
The national anthem of that administrative territory is Il Canto degli Italiani
Il Canto degli Italiani
action filter_type
action find
entity Italy
relation anthem
type literary work
['Italy', 'anthem', {'concept': 'literary work'}]
SELECT DISTINCT ?g WHERE { resource:Italy property:anthem ?g . ?g rdf:type ontology:literary_work }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q187
P676
Q502895
USER
Who is the lyricist of that literary work ?
(Q187,P676,c(Q502895))
action filter_type
action find
entity Q187
relation P676
type Q502895
['Q187', 'P676', {'concept': 'Q502895'}]
SELECT DISTINCT ?l WHERE { resource:Q187 property:P676 ?l . ?l rdf:type ontology:Q502895 }
Il Canto degli Italiani
action filter_type
action find
entity Il Canto degli Italiani
relation lyrics by
type common name
['Il Canto degli Italiani', 'lyrics by', {'concept': 'common name'}]
SELECT DISTINCT ?l WHERE { resource:Il_Canto_degli_Italiani property:lyrics_by ?l . ?l rdf:type ontology:common_name }
[]
common name
Q721738
SYSTEM
Goffredo Mameli
Q721738
(Q187,P676,c(Q502895))
action filter_type
action find
entity Q187
relation P676
type Q502895
The lyricist of that literary work is [ANSWER]
['Q187', 'P676', {'concept': 'Q502895'}]
SELECT DISTINCT ?l WHERE { resource:Q187 property:P676 ?l . ?l rdf:type ontology:Q502895 }
Goffredo Mameli
The lyricist of that literary work is Goffredo Mameli
Goffredo Mameli
action filter_type
action find
entity Il Canto degli Italiani
relation lyrics by
type common name
['Il Canto degli Italiani', 'lyrics by', {'concept': 'common name'}]
SELECT DISTINCT ?l WHERE { resource:Il_Canto_degli_Italiani property:lyrics_by ?l . ?l rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q721738
P21
Q290
USER
Which sex does that person have ?
(Q721738,P21,c(Q290))
action filter_type
action find
entity Q721738
relation P21
type Q290
['Q721738', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?v WHERE { resource:Q721738 property:P21 ?v . ?v rdf:type ontology:Q290 }
Goffredo Mameli
action filter_type
action find
entity Goffredo Mameli
relation gender
type sex
['Goffredo Mameli', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?v WHERE { resource:Goffredo_Mameli property:gender ?v . ?v rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q721738,P21,c(Q290))
action filter_type
action find
entity Q721738
relation P21
type Q290
That person has a [ANSWER]
['Q721738', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?v WHERE { resource:Q721738 property:P21 ?v . ?v rdf:type ontology:Q290 }
male
That person has a male
male
action filter_type
action find
entity Goffredo Mameli
relation gender
type sex
['Goffredo Mameli', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?v WHERE { resource:Goffredo_Mameli property:gender ?v . ?v rdf:type ontology:sex }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q6581097 Q26924955
P21
Q502895
USER
Does Niall McEvoy have the gender as that sex ?
(Q26924955,P21,Q6581097)
action is_in
entity Q6581097
action find
entity Q26924955
relation P21
['Q26924955', 'P21', 'Q6581097']
ASK WHERE { resource:Q26924955 property:P21 resource:Q6581097 }
male Niall McEvoy
action is_in
entity male
action find
entity Niall McEvoy
relation gender
['Niall McEvoy', 'gender', 'male']
ASK WHERE { resource:Niall_McEvoy property:gender resource:male }
[]
common name
SYSTEM
YES
(Q26924955,P21,Q6581097)
action is_in
entity Q6581097
action find
entity Q26924955
relation P21
[ANSWER]
['Q26924955', 'P21', 'Q6581097']
ASK WHERE { resource:Q26924955 property:P21 resource:Q6581097 }
Yes
action is_in
entity male
action find
entity Niall McEvoy
relation gender
['Niall McEvoy', 'gender', 'male']
ASK WHERE { resource:Niall_McEvoy property:gender resource:male }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q38 Q7768
P47
Q1048835
USER
How many political territories share the border with Italy or ASEAN ?
(Q38,P47,c(Q1048835)) (Q7768,P47,c(Q1048835))
action count
action union
action filter_type
action find
entity Q38
relation P47
type Q1048835
action filter_type
action find
entity Q7768
relation P47
type Q1048835
['Q38', 'P47', {'concept': 'Q1048835'}] ['Q7768', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?w ) WHERE { { resource:Q7768 property:P47 ?v . ?v rdf:type ontology:Q1048835 } UNION { resource:Q38 property:P47 ?v . ?v rdf:type ontology:Q1048835 } }
Italy ASEAN
action count
action union
action filter_type
action find
entity Italy
relation shares border with
type political territorial entity
action filter_type
action find
entity ASEAN
relation shares border with
type political territorial entity
['Italy', 'shares border with', {'concept': 'political territorial entity'}] ['ASEAN', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?w ) WHERE { { resource:ASEAN property:shares_border_with ?v . ?v rdf:type ontology:political_territorial_entity } UNION { resource:Italy property:shares_border_with ?v . ?v rdf:type ontology:political_territorial_entity } }
[]
political territorial entity
SYSTEM
2
Q40 Q691
(Q38,P47,c(Q1048835)) (Q7768,P47,c(Q1048835))
action count
action union
action filter_type
action find
entity Q38
relation P47
type Q1048835
action filter_type
action find
entity Q7768
relation P47
type Q1048835
[ANSWER]
['Q38', 'P47', {'concept': 'Q1048835'}] ['Q7768', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?w ) WHERE { { resource:Q7768 property:P47 ?v . ?v rdf:type ontology:Q1048835 } UNION { resource:Q38 property:P47 ?v . ?v rdf:type ontology:Q1048835 } }
Austria Papua New Guinea
2
action count
action union
action filter_type
action find
entity Italy
relation shares border with
type political territorial entity
action filter_type
action find
entity ASEAN
relation shares border with
type political territorial entity
['Italy', 'shares border with', {'concept': 'political territorial entity'}] ['ASEAN', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?w ) WHERE { { resource:ASEAN property:shares_border_with ?v . ?v rdf:type ontology:political_territorial_entity } UNION { resource:Italy property:shares_border_with ?v . ?v rdf:type ontology:political_territorial_entity } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P37
Q34770 Q5962346 Q15617994
USER
Which administrative territories are known to have max number of languages and classification schemes as their official language ?
(c(Q15617994),P37,c(Q34770)|c(Q5962346))
action argmax
action union
action find_tuple_counts
relation P37
type Q15617994
type Q34770
action find_tuple_counts
relation P37
type Q15617994
type Q5962346
[{'concept': 'Q15617994'}, 'P37', [{'concept': 'Q34770'}, {'concept': 'Q5962346'}]]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( MAX ( ?m ) AS ?i ) { SELECT DISTINCT ?n ( COUNT ( ?c ) AS ?m ) WHERE { VALUES ( ?s ) { ( ontology:Q5962346 ) ( ontology:Q34770 ) } . ?c rdf:type ?s } GROUP BY ?n } } . FILTER ( ?v = ?i ) . { SELECT DISTINCT ?h ( COUNT ( ?q ) AS ?v ) WHERE { { ?h property:P37 ?q . ?h rdf:type ontology:Q15617994 . ?q rdf:type ontology:Q34770 } UNION { ?h property:P37 ?q . ?h rdf:type ontology:Q15617994 . ?q rdf:type ontology:Q5962346 } } GROUP BY ?h } }
action argmax
action union
action find_tuple_counts
relation official language
type designation for an administrative territorial entity
type language
action find_tuple_counts
relation official language
type designation for an administrative territorial entity
type classification scheme
[{'concept': 'designation for an administrative territorial entity'}, 'official language', [{'concept': 'language'}, {'concept': 'classification scheme'}]]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( MAX ( ?m ) AS ?i ) { SELECT DISTINCT ?n ( COUNT ( ?c ) AS ?m ) WHERE { VALUES ( ?s ) { ( ontology:classification_scheme ) ( ontology:language ) } . ?c rdf:type ?s } GROUP BY ?n } } . FILTER ( ?v = ?i ) . { SELECT DISTINCT ?h ( COUNT ( ?q ) AS ?v ) WHERE { { ?h property:official_language ?q . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q rdf:type ontology:language } UNION { ?h property:official_language ?q . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q rdf:type ontology:classification_scheme } } GROUP BY ?h } }
[]
language classification scheme designation for an administrative territorial entity
Q29 Q750
SYSTEM
Spain, Bolivia
Q29 Q750
(c(Q15617994),P37,c(Q34770)|c(Q5962346))
action argmax
action union
action find_tuple_counts
relation P37
type Q15617994
type Q34770
action find_tuple_counts
relation P37
type Q15617994
type Q5962346
[ANSWERS] are known to have max number of languages and classification schemes as their official language
[{'concept': 'Q15617994'}, 'P37', [{'concept': 'Q34770'}, {'concept': 'Q5962346'}]]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( MAX ( ?m ) AS ?i ) { SELECT DISTINCT ?n ( COUNT ( ?c ) AS ?m ) WHERE { VALUES ( ?s ) { ( ontology:Q5962346 ) ( ontology:Q34770 ) } . ?c rdf:type ?s } GROUP BY ?n } } . FILTER ( ?v = ?i ) . { SELECT DISTINCT ?h ( COUNT ( ?q ) AS ?v ) WHERE { { ?h property:P37 ?q . ?h rdf:type ontology:Q15617994 . ?q rdf:type ontology:Q34770 } UNION { ?h property:P37 ?q . ?h rdf:type ontology:Q15617994 . ?q rdf:type ontology:Q5962346 } } GROUP BY ?h } }
Spain Bolivia
Spain and Bolivia are known to have max number of languages and classification schemes as their official language
Spain Bolivia
action argmax
action union
action find_tuple_counts
relation official language
type designation for an administrative territorial entity
type language
action find_tuple_counts
relation official language
type designation for an administrative territorial entity
type classification scheme
[{'concept': 'designation for an administrative territorial entity'}, 'official language', [{'concept': 'language'}, {'concept': 'classification scheme'}]]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( MAX ( ?m ) AS ?i ) { SELECT DISTINCT ?n ( COUNT ( ?c ) AS ?m ) WHERE { VALUES ( ?s ) { ( ontology:classification_scheme ) ( ontology:language ) } . ?c rdf:type ?s } GROUP BY ?n } } . FILTER ( ?v = ?i ) . { SELECT DISTINCT ?h ( COUNT ( ?q ) AS ?v ) WHERE { { ?h property:official_language ?q . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q rdf:type ontology:language } UNION { ?h property:official_language ?q . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q rdf:type ontology:classification_scheme } } GROUP BY ?h } }
[]