Simple Question (Direct)
Simple Question
Q1090591
P19
Q56061
USER
Which administrative territory was Richard Vanigli born in ?
(Q1090591,P19,c(Q56061))
action filter_type
action find
entity Q1090591
relation P19
type Q56061
['Q1090591', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?c WHERE { resource:Q1090591 property:P19 ?c . ?c rdf:type ontology:Q56061 }
Richard Vanigli
action filter_type
action find
entity Richard Vanigli
relation place of birth
type administrative territorial entity
['Richard Vanigli', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:Richard_Vanigli property:place_of_birth ?c . ?c rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q13367
SYSTEM
Forlì
Q13367
(Q1090591,P19,c(Q56061))
action filter_type
action find
entity Q1090591
relation P19
type Q56061
Richard Vanigli was born in [ANSWER]
['Q1090591', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?c WHERE { resource:Q1090591 property:P19 ?c . ?c rdf:type ontology:Q56061 }
Forlì
Richard Vanigli was born in Forlì
Forlì
action filter_type
action find
entity Richard Vanigli
relation place of birth
type administrative territorial entity
['Richard Vanigli', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:Richard_Vanigli property:place_of_birth ?c . ?c rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1090591
P21
Q290
USER
Which sex does that person belong to ?
(Q13367,P21,c(Q290))
action filter_type
action find
entity Q1090591
relation P21
type Q290
['Q13367', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?f WHERE { resource:Q1090591 property:P21 ?f . ?f rdf:type ontology:Q290 }
Richard Vanigli
action filter_type
action find
entity Richard Vanigli
relation gender
type sex
['Forlì', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?f WHERE { resource:Richard_Vanigli property:gender ?f . ?f rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q13367,P21,c(Q290))
action filter_type
action find
entity Q1090591
relation P21
type Q290
That person belongs to [ANSWER]
['Q13367', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?f WHERE { resource:Q1090591 property:P21 ?f . ?f rdf:type ontology:Q290 }
male
That person belongs to male
male
action filter_type
action find
entity Richard Vanigli
relation gender
type sex
['Forlì', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?f WHERE { resource:Richard_Vanigli property:gender ?f . ?f rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1090591
P106
Q12737077
USER
Which occupation has Richard Vanigli as his/her 's career ?
(Q1090591,P106,c(Q12737077))
action filter_type
action find
entity Q1090591
relation P106
type Q12737077
['Q1090591', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q12737077 . resource:Q1090591 property:P106 ?l }
Richard Vanigli
action filter_type
action find
entity Richard Vanigli
relation occupation
type occupation
['Richard Vanigli', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:occupation . resource:Richard_Vanigli property:occupation ?l }
[]
occupation
Q937857
SYSTEM
association football player
Q937857
(Q1090591,P106,c(Q12737077))
action filter_type
action find
entity Q1090591
relation P106
type Q12737077
The [ANSWER] has Richard Vanigli as his/her 's career
['Q1090591', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q12737077 . resource:Q1090591 property:P106 ?l }
association football player
The association football player has Richard Vanigli as his/her 's career
association football player
action filter_type
action find
entity Richard Vanigli
relation occupation
type occupation
['Richard Vanigli', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:occupation . resource:Richard_Vanigli property:occupation ?l }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1090591
P641
Q349
USER
Which sport was that person a part of ?
(Q937857,P641,c(Q349))
action filter_type
action find
entity Q1090591
relation P641
type Q349
['Q937857', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?c WHERE { resource:Q1090591 property:P641 ?c . ?c rdf:type ontology:Q349 }
Richard Vanigli
action filter_type
action find
entity Richard Vanigli
relation sport
type sport
['association football player', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?c WHERE { resource:Richard_Vanigli property:sport ?c . ?c rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q937857,P641,c(Q349))
action filter_type
action find
entity Q1090591
relation P641
type Q349
Football [ANSWER] was that person a part of
['Q937857', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?c WHERE { resource:Q1090591 property:P641 ?c . ?c rdf:type ontology:Q349 }
association football
Football association football was that person a part of
association football
action filter_type
action find
entity Richard Vanigli
relation sport
type sport
['association football player', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?c WHERE { resource:Richard_Vanigli property:sport ?c . ?c rdf:type ontology:sport }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q13367 Q173690
P190
Q15617994
USER
How many administrative territories are twin cities of Forlì or Gjirokastër ?
(Q13367,P190,c(Q15617994)) (Q173690,P190,c(Q15617994))
action count
action union
action filter_type
action find
entity Q13367
relation P190
type Q15617994
action filter_type
action find
entity Q173690
relation P190
type Q15617994
['Q13367', 'P190', {'concept': 'Q15617994'}] ['Q173690', 'P190', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?i ) WHERE { ?j property:P190 ?h . VALUES ( ?j ) { ( resource:Q13367 ) ( resource:Q173690 ) } }
Forlì Gjirokastër
action count
action union
action filter_type
action find
entity Forlì
relation sister city
type designation for an administrative territorial entity
action filter_type
action find
entity Gjirokastër
relation sister city
type designation for an administrative territorial entity
['Forlì', 'sister city', {'concept': 'designation for an administrative territorial entity'}] ['Gjirokastër', 'sister city', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?i ) WHERE { ?j property:sister_city ?h . VALUES ( ?j ) { ( resource:Forlì ) ( resource:Gjirokastër ) } }
[]
designation for an administrative territorial entity
SYSTEM
2
Q16333 Q56071
(Q13367,P190,c(Q15617994)) (Q173690,P190,c(Q15617994))
action count
action union
action filter_type
action find
entity Q13367
relation P190
type Q15617994
action filter_type
action find
entity Q173690
relation P190
type Q15617994
[ANSWER]
['Q13367', 'P190', {'concept': 'Q15617994'}] ['Q173690', 'P190', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?i ) WHERE { ?j property:P190 ?h . VALUES ( ?j ) { ( resource:Q13367 ) ( resource:Q173690 ) } }
Casale Monferrato Grottammare
2
action count
action union
action filter_type
action find
entity Forlì
relation sister city
type designation for an administrative territorial entity
action filter_type
action find
entity Gjirokastër
relation sister city
type designation for an administrative territorial entity
['Forlì', 'sister city', {'concept': 'designation for an administrative territorial entity'}] ['Gjirokastër', 'sister city', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?i ) WHERE { ?j property:sister_city ?h . VALUES ( ?j ) { ( resource:Forlì ) ( resource:Gjirokastër ) } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P138
Q2221906 Q1190554 Q56061
USER
Which administrative territories are the eponym of max number of geographic locations and events ?
(c(Q56061),P138,c(Q2221906)|c(Q1190554))
action argmax
action union
action find_tuple_counts
relation P138
type Q56061
type Q2221906
action find_tuple_counts
relation P138
type Q56061
type Q1190554
[{'concept': 'Q56061'}, 'P138', [{'concept': 'Q2221906'}, {'concept': 'Q1190554'}]]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?z ) AS ?r ) WHERE { VALUES ( ?l ) { ( ontology:Q1190554 ) ( ontology:Q2221906 ) } . ?z rdf:type ?l } GROUP BY ?y } . FILTER ( ?r = ?e ) . { SELECT DISTINCT ( MAX ( ?d ) AS ?e ) { SELECT DISTINCT ?c ( COUNT ( ?m ) AS ?d ) WHERE { VALUES ( ?h ) { ( ontology:Q1190554 ) ( ontology:Q2221906 ) } . ?m rdf:type ?h } GROUP BY ?c } } }
action argmax
action union
action find_tuple_counts
relation named after
type administrative territorial entity
type geographic location
action find_tuple_counts
relation named after
type administrative territorial entity
type event
[{'concept': 'administrative territorial entity'}, 'named after', [{'concept': 'geographic location'}, {'concept': 'event'}]]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?z ) AS ?r ) WHERE { VALUES ( ?l ) { ( ontology:event ) ( ontology:geographic_location ) } . ?z rdf:type ?l } GROUP BY ?y } . FILTER ( ?r = ?e ) . { SELECT DISTINCT ( MAX ( ?d ) AS ?e ) { SELECT DISTINCT ?c ( COUNT ( ?m ) AS ?d ) WHERE { VALUES ( ?h ) { ( ontology:event ) ( ontology:geographic_location ) } . ?m rdf:type ?h } GROUP BY ?c } } }
[]
geographic location event administrative territorial entity
Q458 Q639408 Q7974195
SYSTEM
European Union, Waterloo, Waterloo
Q639408 Q7974195 Q3947651 Q458
(c(Q56061),P138,c(Q2221906)|c(Q1190554))
action argmax
action union
action find_tuple_counts
relation P138
type Q56061
type Q2221906
action find_tuple_counts
relation P138
type Q56061
type Q1190554
[ANSWERS] are the eponym of max number of geographic locations and events
[{'concept': 'Q56061'}, 'P138', [{'concept': 'Q2221906'}, {'concept': 'Q1190554'}]]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?z ) AS ?r ) WHERE { VALUES ( ?l ) { ( ontology:Q1190554 ) ( ontology:Q2221906 ) } . ?z rdf:type ?l } GROUP BY ?y } . FILTER ( ?r = ?e ) . { SELECT DISTINCT ( MAX ( ?d ) AS ?e ) { SELECT DISTINCT ?c ( COUNT ( ?m ) AS ?d ) WHERE { VALUES ( ?h ) { ( ontology:Q1190554 ) ( ontology:Q2221906 ) } . ?m rdf:type ?h } GROUP BY ?c } } }
Waterloo Waterloo San Martino della Battaglia European Union
European Union, Waterloo and Waterloo are the eponym of max number of geographic locations and events
European Union Waterloo Waterloo
action argmax
action union
action find_tuple_counts
relation named after
type administrative territorial entity
type geographic location
action find_tuple_counts
relation named after
type administrative territorial entity
type event
[{'concept': 'administrative territorial entity'}, 'named after', [{'concept': 'geographic location'}, {'concept': 'event'}]]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?z ) AS ?r ) WHERE { VALUES ( ?l ) { ( ontology:event ) ( ontology:geographic_location ) } . ?z rdf:type ?l } GROUP BY ?y } . FILTER ( ?r = ?e ) . { SELECT DISTINCT ( MAX ( ?d ) AS ?e ) { SELECT DISTINCT ?c ( COUNT ( ?m ) AS ?d ) WHERE { VALUES ( ?h ) { ( ontology:event ) ( ontology:geographic_location ) } . ?m rdf:type ?h } GROUP BY ?c } } }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P47
Q15617994
USER
How many administrative territories do that administrative territory share a border with ?
(c(Q15617994),P47,Q458)
[{'concept': 'Q15617994'}, 'P47', 'Q458']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:P47 resource:Q458 . ?z rdf:type ontology:Q15617994 }
[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'European Union']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:shares_border_with resource:European_Union . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Quantitative|Count|Single entity type|Clarification
Q639408
SYSTEM
Did you mean Waterloo ?
(c(Q15617994),P47,Q458) (c(Q15617994),P47,Q639408) (c(Q15617994),P47,Q7974195)
[ANSWER]
[{'concept': 'Q15617994'}, 'P47', 'Q458'] [{'concept': 'Q15617994'}, 'P47', 'Q639408'] [{'concept': 'Q15617994'}, 'P47', 'Q7974195']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:P47 resource:Q458 . ?z rdf:type ontology:Q15617994 }
Did you mean Waterloo ?
Waterloo
[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'European Union'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Waterloo'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Waterloo']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:shares_border_with resource:European_Union . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant European Union. Could you tell me the answer for that?
(c(Q15617994),P47,Q458)
Q458
[{'concept': 'Q15617994'}, 'P47', 'Q458']
[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'European Union']
[]
SYSTEM
18
Q222 Q730 Q1028 Q236 Q238 Q225 Q224 Q221 Q213 Q217 Q215 Q218 Q219 Q403 Q155 Q20 Q29 Q43
(c(Q15617994),P47,Q458)
[ANSWER]
[{'concept': 'Q15617994'}, 'P47', 'Q458']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:P47 resource:Q458 . ?z rdf:type ontology:Q15617994 }
Albania Suriname Morocco Montenegro San Marino Bosnia and Herzegovina Croatia Republic of Macedonia Czech Republic Republic of Moldova Slovenia Romania Bulgaria Serbia Brazil Norway Spain Turkey
18
[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'European Union']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:shares_border_with resource:European_Union . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]