Simple Question (Direct)
Simple Question
Q15973682
P106
Q28640
USER
Which professions have Albert Beyens as his/her 's career ?
(Q15973682,P106,c(Q28640))
action filter_type
action find
entity Q15973682
relation P106
type Q28640
['Q15973682', 'P106', {'concept': 'Q28640'}]
SELECT DISTINCT ?i WHERE { resource:Q15973682 property:P106 ?i . ?i rdf:type ontology:Q28640 }
Albert Beyens
action filter_type
action find
entity Albert Beyens
relation occupation
type profession
['Albert Beyens', 'occupation', {'concept': 'profession'}]
SELECT DISTINCT ?i WHERE { resource:Albert_Beyens property:occupation ?i . ?i rdf:type ontology:profession }
[]
profession
Q2664701 Q185351 Q40348
SYSTEM
jurist-consultant, jurist, lawyer
Q2664701 Q185351 Q40348
(Q15973682,P106,c(Q28640))
action filter_type
action find
entity Q15973682
relation P106
type Q28640
[ANSWERS] have Albert Beyens as his/her 's career
['Q15973682', 'P106', {'concept': 'Q28640'}]
SELECT DISTINCT ?i WHERE { resource:Q15973682 property:P106 ?i . ?i rdf:type ontology:Q28640 }
jurist-consultant jurist lawyer
Jurist-consultant, jurist and lawyer have Albert Beyens as his/her 's career
jurist-consultant jurist lawyer
action filter_type
action find
entity Albert Beyens
relation occupation
type profession
['Albert Beyens', 'occupation', {'concept': 'profession'}]
SELECT DISTINCT ?i WHERE { resource:Albert_Beyens property:occupation ?i . ?i rdf:type ontology:profession }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q15973682
P21
Q290
USER
Which sex does that person have ?
(Q2664701,P21,c(Q290)) (Q185351,P21,c(Q290)) (Q40348,P21,c(Q290))
action filter_type
action find
entity Q15973682
relation P21
type Q290
['Q2664701', 'P21', {'concept': 'Q290'}] ['Q185351', 'P21', {'concept': 'Q290'}] ['Q40348', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?s WHERE { resource:Q15973682 property:P21 ?s . ?s rdf:type ontology:Q290 }
Albert Beyens
action filter_type
action find
entity Albert Beyens
relation gender
type sex
['jurist-consultant', 'gender', {'concept': 'sex'}] ['jurist', 'gender', {'concept': 'sex'}] ['lawyer', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?s WHERE { resource:Albert_Beyens property:gender ?s . ?s rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q2664701,P21,c(Q290)) (Q185351,P21,c(Q290)) (Q40348,P21,c(Q290))
action filter_type
action find
entity Q15973682
relation P21
type Q290
That person has a [ANSWER]
['Q2664701', 'P21', {'concept': 'Q290'}] ['Q185351', 'P21', {'concept': 'Q290'}] ['Q40348', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?s WHERE { resource:Q15973682 property:P21 ?s . ?s rdf:type ontology:Q290 }
male
That person has a male
male
action filter_type
action find
entity Albert Beyens
relation gender
type sex
['jurist-consultant', 'gender', {'concept': 'sex'}] ['jurist', 'gender', {'concept': 'sex'}] ['lawyer', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?s WHERE { resource:Albert_Beyens property:gender ?s . ?s rdf:type ontology:sex }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation|Incomplete
Q7046685 Q15973682
P21
Q290
USER
Or Nodesha?
OR((Q15973682,P21,c(Q290)), (Q7046685,P21,c(Q290)))
action filter_type
action union
action find
entity Q15973682
relation P21
action find
entity Q7046685
relation P21
type Q290
{'OR': [['Q15973682', 'P21', {'concept': 'Q290'}], ['Q7046685', 'P21', {'concept': 'Q290'}]]}
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q290 . { { resource:Q15973682 property:P21 ?y } UNION { resource:Q7046685 property:P21 ?y } } }
Nodesha Albert Beyens
action filter_type
action union
action find
entity Albert Beyens
relation gender
action find
entity Nodesha
relation gender
type sex
{'OR': [['Albert Beyens', 'gender', {'concept': 'sex'}], ['Nodesha', 'gender', {'concept': 'sex'}]]}
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:sex . { { resource:Albert_Beyens property:gender ?y } UNION { resource:Nodesha property:gender ?y } } }
[]
sex
Q6581097 Q6581072
SYSTEM
male, female
Q6581097 Q6581072
OR((Q15973682,P21,c(Q290)), (Q7046685,P21,c(Q290)))
action filter_type
action union
action find
entity Q15973682
relation P21
action find
entity Q7046685
relation P21
type Q290
[ANSWERS]
{'OR': [['Q15973682', 'P21', {'concept': 'Q290'}], ['Q7046685', 'P21', {'concept': 'Q290'}]]}
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q290 . { { resource:Q15973682 property:P21 ?y } UNION { resource:Q7046685 property:P21 ?y } } }
male female
male female
action filter_type
action union
action find
entity Albert Beyens
relation gender
action find
entity Nodesha
relation gender
type sex
{'OR': [['Albert Beyens', 'gender', {'concept': 'sex'}], ['Nodesha', 'gender', {'concept': 'sex'}]]}
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:sex . { { resource:Albert_Beyens property:gender ?y } UNION { resource:Nodesha property:gender ?y } } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1635310 Q15973682
P20
Q56061
USER
Which administrative territories did Albert Beyens or Hugo Kinzer die ?
OR((Q15973682,P20,c(Q56061)), (Q1635310,P20,c(Q56061)))
action filter_type
action union
action find
entity Q15973682
relation P20
action find
entity Q1635310
relation P20
type Q56061
{'OR': [['Q15973682', 'P20', {'concept': 'Q56061'}], ['Q1635310', 'P20', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Q15973682 property:P20 ?t } UNION { resource:Q1635310 property:P20 ?t } } . ?t rdf:type ontology:Q56061 }
Hugo Kinzer Albert Beyens
action filter_type
action union
action find
entity Albert Beyens
relation place of death
action find
entity Hugo Kinzer
relation place of death
type administrative territorial entity
{'OR': [['Albert Beyens', 'place of death', {'concept': 'administrative territorial entity'}], ['Hugo Kinzer', 'place of death', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Albert_Beyens property:place_of_death ?t } UNION { resource:Hugo_Kinzer property:place_of_death ?t } } . ?t rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q64 Q239
SYSTEM
Berlin, Brussels
Q64 Q239
OR((Q15973682,P20,c(Q56061)), (Q1635310,P20,c(Q56061)))
action filter_type
action union
action find
entity Q15973682
relation P20
action find
entity Q1635310
relation P20
type Q56061
Albert Beyens or Hugo Kinzer died in [ANSWERS]
{'OR': [['Q15973682', 'P20', {'concept': 'Q56061'}], ['Q1635310', 'P20', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Q15973682 property:P20 ?t } UNION { resource:Q1635310 property:P20 ?t } } . ?t rdf:type ontology:Q56061 }
Berlin Brussels
Albert Beyens or Hugo Kinzer died in Berlin and Brussels
Berlin Brussels
action filter_type
action union
action find
entity Albert Beyens
relation place of death
action find
entity Hugo Kinzer
relation place of death
type administrative territorial entity
{'OR': [['Albert Beyens', 'place of death', {'concept': 'administrative territorial entity'}], ['Hugo Kinzer', 'place of death', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Albert_Beyens property:place_of_death ?t } UNION { resource:Hugo_Kinzer property:place_of_death ?t } } . ?t rdf:type ontology:administrative_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q8356
P417
Q1445650 Q502895 Q56061
USER
Which administrative territories are lesser number of holidays or people a patron saint of than Valladolid ?
(c(Q56061),P417,c(Q1445650)|c(Q502895))
action less
action union
action find_tuple_counts
relation P417
type Q56061
type Q1445650
action find_tuple_counts
relation P417
type Q56061
type Q502895
action count
action filter_multi_types
action find
entity Q8356
relation P417
type Q1445650
type Q502895
[{'concept': 'Q56061'}, 'P417', [{'concept': 'Q1445650'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?v ) ?t WHERE { ?c rdf:type ?r . VALUES ( ?r ) { ( ontology:Q502895 ) ( ontology:Q1445650 ) } } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?n ) WHERE { resource:Q8356 property:P417 ?p . { VALUES ( ?y ) { ( ontology:Q1445650 ) ( ontology:Q502895 ) } . ?p rdf:type ?y } } } . FILTER ( ?v < ?n ) }
Valladolid
action less
action union
action find_tuple_counts
relation patron saint
type administrative territorial entity
type holiday
action find_tuple_counts
relation patron saint
type administrative territorial entity
type common name
action count
action filter_multi_types
action find
entity Valladolid
relation patron saint
type holiday
type common name
[{'concept': 'administrative territorial entity'}, 'patron saint', [{'concept': 'holiday'}, {'concept': 'common name'}]]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?v ) ?t WHERE { ?c rdf:type ?r . VALUES ( ?r ) { ( ontology:common_name ) ( ontology:holiday ) } } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?n ) WHERE { resource:Valladolid property:patron_saint ?p . { VALUES ( ?y ) { ( ontology:holiday ) ( ontology:common_name ) } . ?p rdf:type ?y } } } . FILTER ( ?v < ?n ) }
[]
holiday common name administrative territorial entity
Q6221 Q329984 Q4361
SYSTEM
Brescia, Úbeda, Curitiba
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))
action less
action union
action find_tuple_counts
relation P417
type Q56061
type Q1445650
action find_tuple_counts
relation P417
type Q56061
type Q502895
action count
action filter_multi_types
action find
entity Q8356
relation P417
type Q1445650
type Q502895
[ANSWERS] are lesser number of holidays or people a patron saint of than Valladolid
[{'concept': 'Q56061'}, 'P417', [{'concept': 'Q1445650'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?v ) ?t WHERE { ?c rdf:type ?r . VALUES ( ?r ) { ( ontology:Q502895 ) ( ontology:Q1445650 ) } } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?n ) WHERE { resource:Q8356 property:P417 ?p . { VALUES ( ?y ) { ( ontology:Q1445650 ) ( ontology:Q502895 ) } . ?p rdf:type ?y } } } . FILTER ( ?v < ?n ) }
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
Brescia, Úbeda and Curitiba are lesser number of holidays or people a patron saint of than Valladolid
Brescia Úbeda Curitiba
action less
action union
action find_tuple_counts
relation patron saint
type administrative territorial entity
type holiday
action find_tuple_counts
relation patron saint
type administrative territorial entity
type common name
action count
action filter_multi_types
action find
entity Valladolid
relation patron saint
type holiday
type common name
[{'concept': 'administrative territorial entity'}, 'patron saint', [{'concept': 'holiday'}, {'concept': 'common name'}]]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?v ) ?t WHERE { ?c rdf:type ?r . VALUES ( ?r ) { ( ontology:common_name ) ( ontology:holiday ) } } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?n ) WHERE { resource:Valladolid property:patron_saint ?p . { VALUES ( ?y ) { ( ontology:holiday ) ( ontology:common_name ) } . ?p rdf:type ?y } } } . FILTER ( ?v < ?n ) }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P17
Q15617994
USER
How many administrative territories are that administrative territory present in ?
(Q6221,P17,c(Q15617994))
['Q6221', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q16860406 property:Q6256 ?z . ?z rdf:type ontology:Q15617994 }
['Brescia', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Brescia property:country ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Quantitative|Count|Single entity type|Clarification
Q4361
SYSTEM
Did you mean Curitiba ?
(Q6221,P17,c(Q15617994)) (Q329984,P17,c(Q15617994)) (Q4361,P17,c(Q15617994))
[ANSWER]
['Q6221', 'P17', {'concept': 'Q15617994'}] ['Q329984', 'P17', {'concept': 'Q15617994'}] ['Q4361', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q16860406 property:Q6256 ?z . ?z rdf:type ontology:Q15617994 }
Did you mean Curitiba ?
Curitiba
['Brescia', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Úbeda', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Curitiba', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Brescia property:country ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Brescia. Could you tell me the answer for that?
(Q6221,P17,c(Q15617994))
Q6221
['Q6221', 'P17', {'concept': 'Q15617994'}]
['Brescia', 'country', {'concept': 'designation for an administrative territorial entity'}]
[]
SYSTEM
1
Q38
(Q6221,P17,c(Q15617994))
[ANSWER]
['Q6221', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q16860406 property:Q6256 ?z . ?z rdf:type ontology:Q15617994 }
Italy
1
['Brescia', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Brescia property:country ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q64
P276
Q15275719
USER
What are located at Berlin ?
(c(Q15275719),P276,Q64)
action filter_type
action find_reverse
entity Q64
relation P276
type Q15275719
[{'concept': 'Q15275719'}, 'P276', 'Q64']
SELECT DISTINCT ?v WHERE { ?v property:P276 resource:Q64 . ?v rdf:type ontology:Q15275719 }
Berlin
action filter_type
action find_reverse
entity Berlin
relation location
type recurring event
[{'concept': 'recurring event'}, 'location', 'Berlin']
SELECT DISTINCT ?v WHERE { ?v property:location resource:Berlin . ?v rdf:type ontology:recurring_event }
[]
recurring event
Q1666063 Q277310 Q692114
SYSTEM
Interfilm - Berlin International Short Film Festival, 99Fire-Films-Award, Velothon Berlin
Q1414670 Q277310 Q12356211 Q692114 Q624324 Q1335424 Q265292 Q130871 Q812871 Q14944300 Q18763327 Q1666063 Q171609 Q2676647
(c(Q15275719),P276,Q64)
action filter_type
action find_reverse
entity Q64
relation P276
type Q15275719
[ANSWERS] are located at Berlin
[{'concept': 'Q15275719'}, 'P276', 'Q64']
SELECT DISTINCT ?v WHERE { ?v property:P276 resource:Q64 . ?v rdf:type ontology:Q15275719 }
Film Festival ContraVision 99Fire-Films-Award World Esperanto Congress 1999 Velothon Berlin ALFILM - Arab Film Festival Berlin Emergeandsee Transmediale - Festival for Art and Digital Culture Berlin International Film Festival 2010 European Beach Volleyball Championships International Film Awards Berlin Berlin Independent Film Festival Interfilm - Berlin International Short Film Festival 11mm - International Football Film Festival Directors Lounge
Interfilm - Berlin International Short Film Festival, 99Fire-Films-Award and Velothon Berlin are located at Berlin
Interfilm - Berlin International Short Film Festival 99Fire-Films-Award Velothon Berlin
action filter_type
action find_reverse
entity Berlin
relation location
type recurring event
[{'concept': 'recurring event'}, 'location', 'Berlin']
SELECT DISTINCT ?v WHERE { ?v property:location resource:Berlin . ?v rdf:type ontology:recurring_event }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1666063
P159
Q56061
USER
Which administrative territory is the headquarter location of that recurring event ?
(Q1666063,P159,c(Q56061))
action filter_type
action find
entity Q1666063
relation P159
type Q56061
['Q1666063', 'P159', {'concept': 'Q56061'}]
SELECT DISTINCT ?d WHERE { resource:Q1666063 property:P159 ?d . ?d rdf:type ontology:Q56061 }
Interfilm - Berlin International Short Film Festival
action filter_type
action find
entity Interfilm - Berlin International Short Film Festival
relation headquarters location
type administrative territorial entity
['Interfilm - Berlin International Short Film Festival', 'headquarters location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Interfilm_-_Berlin_International_Short_Film_Festival property:headquarters_location ?d . ?d rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Clarification for simple ques.
Q692114
SYSTEM
Did you mean Velothon Berlin ?
Q1666063 Q277310 Q692114
(Q1666063,P159,c(Q56061)) (Q277310,P159,c(Q56061)) (Q692114,P159,c(Q56061))
[ANSWER]
['Q1666063', 'P159', {'concept': 'Q56061'}] ['Q277310', 'P159', {'concept': 'Q56061'}] ['Q692114', 'P159', {'concept': 'Q56061'}]
SELECT DISTINCT ?d WHERE { resource:Q1666063 property:P159 ?d . ?d rdf:type ontology:Q56061 }
Interfilm - Berlin International Short Film Festival 99Fire-Films-Award Velothon Berlin
Did you mean Velothon Berlin ?
Velothon Berlin
['Interfilm - Berlin International Short Film Festival', 'headquarters location', {'concept': 'administrative territorial entity'}] ['99Fire-Films-Award', 'headquarters location', {'concept': 'administrative territorial entity'}] ['Velothon Berlin', 'headquarters location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Interfilm_-_Berlin_International_Short_Film_Festival property:headquarters_location ?d . ?d rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
USER
No, I meant Interfilm - Berlin International Short Film Festival. Could you tell me the answer for that?
(Q1666063,P159,c(Q56061))
Q1666063
['Q1666063', 'P159', {'concept': 'Q56061'}]
['Interfilm - Berlin International Short Film Festival', 'headquarters location', {'concept': 'administrative territorial entity'}]
[]
Q64
SYSTEM
Berlin
Q64
(Q1666063,P159,c(Q56061))
action filter_type
action find
entity Q1666063
relation P159
type Q56061
[ANSWER] is the headquarter location of that recurring event
['Q1666063', 'P159', {'concept': 'Q56061'}]
SELECT DISTINCT ?d WHERE { resource:Q1666063 property:P159 ?d . ?d rdf:type ontology:Q56061 }
Berlin
Berlin is the headquarter location of that recurring event
Berlin
action filter_type
action find
entity Interfilm - Berlin International Short Film Festival
relation headquarters location
type administrative territorial entity
['Interfilm - Berlin International Short Film Festival', 'headquarters location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Interfilm_-_Berlin_International_Short_Film_Festival property:headquarters_location ?d . ?d rdf:type ontology:administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q64 Q65967
P19
Q502895
USER
Does Paul Güssfeldt have birthplace at that administrative territory ?
(Q65967,P19,Q64)
action is_in
entity Q64
action find
entity Q65967
relation P19
['Q65967', 'P19', 'Q64']
ASK WHERE { resource:Q65967 property:P19 resource:Q64 }
Berlin Paul Güssfeldt
action is_in
entity Berlin
action find
entity Paul Güssfeldt
relation place of birth
['Paul Güssfeldt', 'place of birth', 'Berlin']
ASK WHERE { resource:Paul_Güssfeldt property:place_of_birth resource:Berlin }
[]
common name
SYSTEM
YES
(Q65967,P19,Q64)
action is_in
entity Q64
action find
entity Q65967
relation P19
[ANSWER]
['Q65967', 'P19', 'Q64']
ASK WHERE { resource:Q65967 property:P19 resource:Q64 }
Yes
action is_in
entity Berlin
action find
entity Paul Güssfeldt
relation place of birth
['Paul Güssfeldt', 'place of birth', 'Berlin']
ASK WHERE { resource:Paul_Güssfeldt property:place_of_birth resource:Berlin }
[]