Simple Question (Direct)
Simple Question
Q17486598
P106
Q12737077
USER
What is the job of Filipe Nascimento ?
(Q17486598,P106,c(Q12737077))
action filter_type
action find
entity Q17486598
relation P106
type Q12737077
['Q17486598', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?c WHERE { resource:Q17486598 property:P106 ?c . ?c rdf:type ontology:Q12737077 }
Filipe Nascimento
action filter_type
action find
entity Filipe Nascimento
relation occupation
type occupation
['Filipe Nascimento', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?c WHERE { resource:Filipe_Nascimento property:occupation ?c . ?c rdf:type ontology:occupation }
[]
occupation
Q937857
SYSTEM
association football player
Q937857
(Q17486598,P106,c(Q12737077))
action filter_type
action find
entity Q17486598
relation P106
type Q12737077
The job of Filipe Nascimento is an [ANSWER]
['Q17486598', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?c WHERE { resource:Q17486598 property:P106 ?c . ?c rdf:type ontology:Q12737077 }
association football player
The job of Filipe Nascimento is an association football player
association football player
action filter_type
action find
entity Filipe Nascimento
relation occupation
type occupation
['Filipe Nascimento', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?c WHERE { resource:Filipe_Nascimento property:occupation ?c . ?c rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q17486598
P21
Q290
USER
What is the sex of that person ?
(Q937857,P21,c(Q290))
action filter_type
action find
entity Q17486598
relation P21
type Q290
['Q937857', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?c WHERE { resource:Q17486598 property:P21 ?c . ?c rdf:type ontology:Q290 }
Filipe Nascimento
action filter_type
action find
entity Filipe Nascimento
relation gender
type sex
['association football player', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?c WHERE { resource:Filipe_Nascimento property:gender ?c . ?c rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q937857,P21,c(Q290))
action filter_type
action find
entity Q17486598
relation P21
type Q290
The sex of that person is a [ANSWER]
['Q937857', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?c WHERE { resource:Q17486598 property:P21 ?c . ?c rdf:type ontology:Q290 }
male
The sex of that person is a male
male
action filter_type
action find
entity Filipe Nascimento
relation gender
type sex
['association football player', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?c WHERE { resource:Filipe_Nascimento property:gender ?c . ?c rdf:type ontology:sex }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P417
Q502895 Q12737077
USER
How many people are the names of the patron saint of atleast 3 occupations ?
(c(Q12737077),P417,c(Q502895))
action count
action atleast
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
value 3
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?k ) WHERE { FILTER ( ?a >= 3 ) . { SELECT DISTINCT ?m ( COUNT ( ?y ) AS ?a ) WHERE { ?m rdf:type ontology:Q502895 . ?y rdf:type ontology:Q12737077 . ?y property:P417 ?m } GROUP BY ?m } }
action count
action atleast
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
value 3
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?k ) WHERE { FILTER ( ?a >= 3 ) . { SELECT DISTINCT ?m ( COUNT ( ?y ) AS ?a ) WHERE { ?m rdf:type ontology:common_name . ?y rdf:type ontology:occupation . ?y property:patron_saint ?m } GROUP BY ?m } }
[]
common name occupation
SYSTEM
6
Q128538 Q192816 Q43982 Q179718 Q43600 Q200895
(c(Q12737077),P417,c(Q502895))
action count
action atleast
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
value 3
[ANSWER]
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?k ) WHERE { FILTER ( ?a >= 3 ) . { SELECT DISTINCT ?m ( COUNT ( ?y ) AS ?a ) WHERE { ?m rdf:type ontology:Q502895 . ?y rdf:type ontology:Q12737077 . ?y property:P417 ?m } GROUP BY ?m } }
Luke the Evangelist Saint Barbara Bartholomew the Apostle Catherine of Alexandria Matthew the Apostle Agatha of Sicily
6
action count
action atleast
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
value 3
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?k ) WHERE { FILTER ( ?a >= 3 ) . { SELECT DISTINCT ?m ( COUNT ( ?y ) AS ?a ) WHERE { ?m rdf:type ontology:common_name . ?y rdf:type ontology:occupation . ?y property:patron_saint ?m } GROUP BY ?m } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q17486598
P641
Q349
USER
What was the sport that Filipe Nascimento was a part of ?
(Q17486598,P641,c(Q349))
action filter_type
action find
entity Q17486598
relation P641
type Q349
['Q17486598', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?f WHERE { resource:Q17486598 property:P641 ?f . ?f rdf:type ontology:Q349 }
Filipe Nascimento
action filter_type
action find
entity Filipe Nascimento
relation sport
type sport
['Filipe Nascimento', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?f WHERE { resource:Filipe_Nascimento property:sport ?f . ?f rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q17486598,P641,c(Q349))
action filter_type
action find
entity Q17486598
relation P641
type Q349
The sport that Filipe Nascimento was a part of was the [ANSWER]
['Q17486598', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?f WHERE { resource:Q17486598 property:P641 ?f . ?f rdf:type ontology:Q349 }
association football
The sport that Filipe Nascimento was a part of was the association football
association football
action filter_type
action find
entity Filipe Nascimento
relation sport
type sport
['Filipe Nascimento', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?f WHERE { resource:Filipe_Nascimento property:sport ?f . ?f rdf:type ontology:sport }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q17486598
P19
Q13220204
USER
Which administrative country subdivision is the place of birth of Filipe Nascimento ?
(Q17486598,P19,c(Q13220204))
action filter_type
action find
entity Q17486598
relation P19
type Q13220204
['Q17486598', 'P19', {'concept': 'Q13220204'}]
SELECT DISTINCT ?v WHERE { resource:Q17486598 property:P19 ?v . ?v rdf:type ontology:Q13220204 }
Filipe Nascimento
action filter_type
action find
entity Filipe Nascimento
relation place of birth
type second-level administrative country subdivision
['Filipe Nascimento', 'place of birth', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ?v WHERE { resource:Filipe_Nascimento property:place_of_birth ?v . ?v rdf:type ontology:second-level_administrative_country_subdivision }
[]
second-level administrative country subdivision
Q917535
SYSTEM
Loures
Q917535
(Q17486598,P19,c(Q13220204))
action filter_type
action find
entity Q17486598
relation P19
type Q13220204
[ANSWER] is the place of birth of Filipe Nascimento
['Q17486598', 'P19', {'concept': 'Q13220204'}]
SELECT DISTINCT ?v WHERE { resource:Q17486598 property:P19 ?v . ?v rdf:type ontology:Q13220204 }
Loures
Loures is the place of birth of Filipe Nascimento
Loures
action filter_type
action find
entity Filipe Nascimento
relation place of birth
type second-level administrative country subdivision
['Filipe Nascimento', 'place of birth', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ?v WHERE { resource:Filipe_Nascimento property:place_of_birth ?v . ?v rdf:type ontology:second-level_administrative_country_subdivision }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q5935284
Q13220204
USER
And what about Jorge Hugo Giraldo?
(Q5935284,P19,c(Q13220204))
action filter_type
action find
entity Q5935284
relation P19
type Q13220204
['Q5935284', 'P19', {'concept': 'Q13220204'}]
SELECT DISTINCT ?r WHERE { resource:Q5935284 property:P19 ?r . ?r rdf:type ontology:Q13220204 }
Jorge Hugo Giraldo
action filter_type
action find
entity Jorge Hugo Giraldo
relation place of birth
type second-level administrative country subdivision
['Jorge Hugo Giraldo', 'place of birth', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ?r WHERE { resource:Jorge_Hugo_Giraldo property:place_of_birth ?r . ?r rdf:type ontology:second-level_administrative_country_subdivision }
[]
second-level administrative country subdivision
Q48278
SYSTEM
Antioquia - Medellín
Q48278
(Q5935284,P19,c(Q13220204))
action filter_type
action find
entity Q5935284
relation P19
type Q13220204
[ANSWER]
['Q5935284', 'P19', {'concept': 'Q13220204'}]
SELECT DISTINCT ?r WHERE { resource:Q5935284 property:P19 ?r . ?r rdf:type ontology:Q13220204 }
Antioquia - Medellín
Antioquia - Medellín
action filter_type
action find
entity Jorge Hugo Giraldo
relation place of birth
type second-level administrative country subdivision
['Jorge Hugo Giraldo', 'place of birth', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ?r WHERE { resource:Jorge_Hugo_Giraldo property:place_of_birth ?r . ?r rdf:type ontology:second-level_administrative_country_subdivision }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q48278
P17
Q15617994
USER
Which administrative territory is that administrative country subdivision situated in ?
(Q48278,P17,c(Q15617994))
action filter_type
action find
entity Q48278
relation P17
type Q15617994
['Q48278', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q15617994 . resource:Q48278 property:P17 ?q }
Antioquia - Medellín
action filter_type
action find
entity Antioquia - Medellín
relation country
type designation for an administrative territorial entity
['Antioquia - Medellín', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Antioquia_-_Medellín property:country ?q }
[]
designation for an administrative territorial entity
Q739
SYSTEM
Colombia
Q739
(Q48278,P17,c(Q15617994))
action filter_type
action find
entity Q48278
relation P17
type Q15617994
That administrative country subdivision is situated in [ANSWER]
['Q48278', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q15617994 . resource:Q48278 property:P17 ?q }
Colombia
That administrative country subdivision is situated in Colombia
Colombia
action filter_type
action find
entity Antioquia - Medellín
relation country
type designation for an administrative territorial entity
['Antioquia - Medellín', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Antioquia_-_Medellín property:country ?q }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q83324 Q48278
P190
Q56061
USER
Which administrative territories are sister towns of Antioquia - Medellín or Sibiu ?
OR((Q48278,P190,c(Q56061)), (Q83324,P190,c(Q56061)))
action filter_type
action union
action find
entity Q48278
relation P190
action find
entity Q83324
relation P190
type Q56061
{'OR': [['Q48278', 'P190', {'concept': 'Q56061'}], ['Q83324', 'P190', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?r WHERE { { { resource:Q48278 property:P190 ?r } UNION { resource:Q83324 property:P190 ?r } } . ?r rdf:type ontology:Q56061 }
Sibiu Antioquia - Medellín
action filter_type
action union
action find
entity Antioquia - Medellín
relation sister city
action find
entity Sibiu
relation sister city
type administrative territorial entity
{'OR': [['Antioquia - Medellín', 'sister city', {'concept': 'administrative territorial entity'}], ['Sibiu', 'sister city', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?r WHERE { { { resource:Antioquia_-_Medellín property:sister_city ?r } UNION { resource:Sibiu property:sister_city ?r } } . ?r rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q833016 Q162022 Q927933 Q241645 Q51103 Q490 Q140075 Q3869 Q647 Q8692
SYSTEM
Some of them are Tacuarembó, Mechelen, Tarapoto, Bauru, Cali, Milan, Gold Coast, Marburg, Rennes, Bilbao
Q59670 Q140075 Q647 Q8692 Q162022 Q3869 Q6506 Q333928 Q241645 Q927933 Q490 Q833016 Q1492 Q165972 Q51103
OR((Q48278,P190,c(Q56061)), (Q83324,P190,c(Q56061)))
action filter_type
action union
action find
entity Q48278
relation P190
action find
entity Q83324
relation P190
type Q56061
[ANSWERS] are sister towns of Antioquia - Medellín or Sibiu
{'OR': [['Q48278', 'P190', {'concept': 'Q56061'}], ['Q83324', 'P190', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?r WHERE { { { resource:Q48278 property:P190 ?r } UNION { resource:Q83324 property:P190 ?r } } . ?r rdf:type ontology:Q56061 }
Columbia Gold Coast Rennes Bilbao Mechelen Marburg Varna Maracay Bauru Tarapoto Milan Tacuarembó Barcelona Fort Lauderdale Cali
Tacuarembó, Mechelen, Tarapoto, Bauru, Cali, Milan, Gold Coast, Marburg, Rennes and Bilbao are sister towns of Antioquia - Medellín or Sibiu
Tacuarembó Mechelen Tarapoto Bauru Cali Milan Gold Coast Marburg Rennes Bilbao
action filter_type
action union
action find
entity Antioquia - Medellín
relation sister city
action find
entity Sibiu
relation sister city
type administrative territorial entity
{'OR': [['Antioquia - Medellín', 'sister city', {'concept': 'administrative territorial entity'}], ['Sibiu', 'sister city', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?r WHERE { { { resource:Antioquia_-_Medellín property:sister_city ?r } UNION { resource:Sibiu property:sister_city ?r } } . ?r rdf:type ontology:administrative_territorial_entity }
[]
Clarification
Comparative|Count over More/Less|Mult. entity type|Indirect
P417
Q1445650 Q502895 Q56061
USER
How many administrative territories have around the same number of holidays or people as their patron saint as that administrative territory ?
(c(Q56061),P417,c(Q1445650)|c(Q502895))
[{'concept': 'Q56061'}, 'P417', [{'concept': 'Q1445650'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?w ) WHERE { { { ?z property:Q28914 ?y } UNION { ?z property:Q28914 ?x } } . ?z rdf:type ontology:Q56061 . ?y rdf:type ontology:Q1445650 . ?x rdf:type ontology:Q502895 }
[{'concept': 'administrative territorial entity'}, 'patron saint', [{'concept': 'holiday'}, {'concept': 'common name'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?w ) WHERE { { { ?z property:patron_saint ?y } UNION { ?z property:patron_saint ?x } } . ?z rdf:type ontology:administrative_territorial_entity . ?y rdf:type ontology:holiday . ?x rdf:type ontology:common_name }
[]
holiday common name administrative territorial entity
Comparative|Count over More/Less|Mult. entity type|Clarification
Q51103
SYSTEM
Did you mean Cali ?
(c(Q56061),P417,c(Q1445650)|c(Q502895))
[ANSWER]
[{'concept': 'Q56061'}, 'P417', [{'concept': 'Q1445650'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?w ) WHERE { { { ?z property:Q28914 ?y } UNION { ?z property:Q28914 ?x } } . ?z rdf:type ontology:Q56061 . ?y rdf:type ontology:Q1445650 . ?x rdf:type ontology:Q502895 }
Did you mean Cali ?
Cali
[{'concept': 'administrative territorial entity'}, 'patron saint', [{'concept': 'holiday'}, {'concept': 'common name'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?w ) WHERE { { { ?z property:patron_saint ?y } UNION { ?z property:patron_saint ?x } } . ?z rdf:type ontology:administrative_territorial_entity . ?y rdf:type ontology:holiday . ?x rdf:type ontology:common_name }
[]
Comparative Reasoning (Count) (All)
USER
No, I meant Milan. Could you tell me the answer for that?
(c(Q56061),P417,c(Q1445650)|c(Q502895))
Q490
[{'concept': 'Q56061'}, 'P417', [{'concept': 'Q1445650'}, {'concept': 'Q502895'}]]
[{'concept': 'administrative territorial entity'}, 'patron saint', [{'concept': 'holiday'}, {'concept': 'common name'}]]
[]
SYSTEM
33
Q264716 Q12883498 Q54494 Q50057 Q117388 Q6221 Q46718 Q54119 Q81258 Q47074 Q59257 Q4361 Q2914723 Q100129 Q52547 Q116440 Q2284679 Q496890 Q297224 Q259039 Q54556 Q487786 Q100943 Q244193 Q1747381 Q492475 Q334577 Q39493 Q329984 Q47034 Q215080 Q270288 Q102820
(c(Q56061),P417,c(Q1445650)|c(Q502895))
[ANSWER]
[{'concept': 'Q56061'}, 'P417', [{'concept': 'Q1445650'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?w ) WHERE { { { ?z property:Q28914 ?y } UNION { ?z property:Q28914 ?x } } . ?z rdf:type ontology:Q56061 . ?y rdf:type ontology:Q1445650 . ?x rdf:type ontology:Q502895 }
Carzano Pano Platres Belvedere di Spinello Cagnano Amiterno Strangolagalli Brescia Carrè San Pedro Padula Aielli Montefortino Curitiba Nemausus Calvenzano Campomaggiore Arpino General Alvear, Mendoza Balestrate Padergnone Giardinello Africo Orihuela Sorbolo Cagno Polykastro Valença Quetzaltenango Cantello Úbeda Espoo Machala Riccò del Golfo di Spezia Nibbiano
33
[{'concept': 'administrative territorial entity'}, 'patron saint', [{'concept': 'holiday'}, {'concept': 'common name'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?w ) WHERE { { { ?z property:patron_saint ?y } UNION { ?z property:patron_saint ?x } } . ?z rdf:type ontology:administrative_territorial_entity . ?y rdf:type ontology:holiday . ?x rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q3766 Q917535
P190
Q56061
USER
Which administrative territories are the sister cities of Loures or Damascus ?
OR((Q917535,P190,c(Q56061)), (Q3766,P190,c(Q56061)))
action filter_type
action union
action find
entity Q917535
relation P190
action find
entity Q3766
relation P190
type Q56061
{'OR': [['Q917535', 'P190', {'concept': 'Q56061'}], ['Q3766', 'P190', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Q3766 property:P190 ?n } UNION { resource:Q917535 property:P190 ?n } } . ?n rdf:type ontology:Q56061 }
Damascus Loures
action filter_type
action union
action find
entity Loures
relation sister city
action find
entity Damascus
relation sister city
type administrative territorial entity
{'OR': [['Loures', 'sister city', {'concept': 'administrative territorial entity'}], ['Damascus', 'sister city', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Damascus property:sister_city ?n } UNION { resource:Loures property:sister_city ?n } } . ?n rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q406 Q612 Q1781 Q8851 Q5818 Q2807 Q5836 Q13362 Q170967 Q3820
SYSTEM
Some of them are Istanbul, Dubai, Budapest, Málaga, Córdoba, Madrid, Toledo, Ferrara, Denizli, Beirut
Q3551 Q631849 Q5818 Q5836 Q1524 Q558610 Q1781 Q612 Q13362 Q8851 Q1490 Q85 Q109949 Q406 Q170967 Q174 Q172 Q2807 Q2044 Q3640 Q3805 Q3820
OR((Q917535,P190,c(Q56061)), (Q3766,P190,c(Q56061)))
action filter_type
action union
action find
entity Q917535
relation P190
action find
entity Q3766
relation P190
type Q56061
[ANSWERS] are the sister cities of Loures or Damascus
{'OR': [['Q917535', 'P190', {'concept': 'Q56061'}], ['Q3766', 'P190', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Q3766 property:P190 ?n } UNION { resource:Q917535 property:P190 ?n } } . ?n rdf:type ontology:Q56061 }
Rabat Diu Córdoba Toledo Athens Armamar Municipality Budapest Dubai Ferrara Málaga Tokyo Cairo Matola Istanbul Denizli São Paulo Toronto Madrid Florence Ankara Amman Beirut
Istanbul, Dubai, Budapest, Málaga, Córdoba, Madrid, Toledo, Ferrara, Denizli and Beirut are the sister cities of Loures or Damascus
Istanbul Dubai Budapest Málaga Córdoba Madrid Toledo Ferrara Denizli Beirut
action filter_type
action union
action find
entity Loures
relation sister city
action find
entity Damascus
relation sister city
type administrative territorial entity
{'OR': [['Loures', 'sister city', {'concept': 'administrative territorial entity'}], ['Damascus', 'sister city', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Damascus property:sister_city ?n } UNION { resource:Loures property:sister_city ?n } } . ?n rdf:type ontology:administrative_territorial_entity }
[]