Simple Question (Direct)
Simple Question
Q3083946
P106
Q12737077
USER
What does François Bernardini do for a living ?
(Q3083946,P106,c(Q12737077))
action filter_type
action find
entity Q3083946
relation P106
type Q12737077
['Q3083946', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?y WHERE { resource:Q3083946 property:P106 ?y . ?y rdf:type ontology:Q12737077 }
François Bernardini
action filter_type
action find
entity François Bernardini
relation occupation
type occupation
['François Bernardini', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?y WHERE { resource:François_Bernardini property:occupation ?y . ?y rdf:type ontology:occupation }
[]
occupation
Q82955
SYSTEM
politician
Q82955
(Q3083946,P106,c(Q12737077))
action filter_type
action find
entity Q3083946
relation P106
type Q12737077
François Bernardini does not [ANSWER] for a living
['Q3083946', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?y WHERE { resource:Q3083946 property:P106 ?y . ?y rdf:type ontology:Q12737077 }
politician
François Bernardini does not politician for a living
politician
action filter_type
action find
entity François Bernardini
relation occupation
type occupation
['François Bernardini', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?y WHERE { resource:François_Bernardini property:occupation ?y . ?y rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3083946
P937
Q56061
USER
What is the location where François Bernardini worked ?
(Q3083946,P937,c(Q56061))
action filter_type
action find
entity Q3083946
relation P937
type Q56061
['Q3083946', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q56061 . resource:Q3083946 property:P937 ?c }
François Bernardini
action filter_type
action find
entity François Bernardini
relation work location
type administrative territorial entity
['François Bernardini', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:administrative_territorial_entity . resource:François_Bernardini property:work_location ?c }
[]
administrative territorial entity
Q239
SYSTEM
Brussels
Q239
(Q3083946,P937,c(Q56061))
action filter_type
action find
entity Q3083946
relation P937
type Q56061
The location François Bernardini worked is in [ANSWER]
['Q3083946', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q56061 . resource:Q3083946 property:P937 ?c }
Brussels
The location François Bernardini worked is in Brussels
Brussels
action filter_type
action find
entity François Bernardini
relation work location
type administrative territorial entity
['François Bernardini', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:administrative_territorial_entity . resource:François_Bernardini property:work_location ?c }
[]
Simple Question (Ellipsis)
Incomplete|object parent is changed, subject and predicate remain same
Q3083946
Q515
USER
And which city?
(Q3083946,P937,c(Q515))
action filter_type
action find
entity Q3083946
relation P937
type Q515
['Q3083946', 'P937', {'concept': 'Q515'}]
SELECT DISTINCT ?y WHERE { resource:Q3083946 property:P937 ?y . ?y rdf:type ontology:Q515 }
François Bernardini
action filter_type
action find
entity François Bernardini
relation work location
type city
['François Bernardini', 'work location', {'concept': 'city'}]
SELECT DISTINCT ?y WHERE { resource:François_Bernardini property:work_location ?y . ?y rdf:type ontology:city }
[]
city
Q6602
SYSTEM
Strasbourg
Q6602
(Q3083946,P937,c(Q515))
action filter_type
action find
entity Q3083946
relation P937
type Q515
[ANSWER]
['Q3083946', 'P937', {'concept': 'Q515'}]
SELECT DISTINCT ?y WHERE { resource:Q3083946 property:P937 ?y . ?y rdf:type ontology:Q515 }
Strasbourg
Strasbourg
action filter_type
action find
entity François Bernardini
relation work location
type city
['François Bernardini', 'work location', {'concept': 'city'}]
SELECT DISTINCT ?y WHERE { resource:François_Bernardini property:work_location ?y . ?y rdf:type ontology:city }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Indirect
P1427
Q515 Q3839081
USER
Which cities are the start points of around the same number of disasters as that city ?
(c(Q3839081),P1427,c(Q515))
action approx
action find_reverse_tuple_counts
relation P1427
type Q515
type Q3839081
action count
action filter_type
action find
entity Q6602
relation P1427
type Q515
[{'concept': 'Q3839081'}, 'P1427', {'concept': 'Q515'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?j ) WHERE { resource:Q6602 property:P1427 ?p . ?p rdf:type ontology:Q515 } } . FILTER ( ?l = ?j ) . { SELECT DISTINCT ?q ( COUNT ( ?b ) AS ?l ) WHERE { ?b property:P1427 ?q . ?q rdf:type ontology:Q515 . ?b rdf:type ontology:Q3839081 } GROUP BY ?q } }
action approx
action find_reverse_tuple_counts
relation start point
type city
type disaster
action count
action filter_type
action find
entity Strasbourg
relation start point
type city
[{'concept': 'disaster'}, 'start point', {'concept': 'city'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?j ) WHERE { resource:Strasbourg property:start_point ?p . ?p rdf:type ontology:city } } . FILTER ( ?l = ?j ) . { SELECT DISTINCT ?q ( COUNT ( ?b ) AS ?l ) WHERE { ?b property:start_point ?q . ?q rdf:type ontology:city . ?b rdf:type ontology:disaster } GROUP BY ?q } }
[]
city disaster
Q1486 Q1794 Q23482
SYSTEM
Buenos Aires, Frankfurt, Marseille
Q23482 Q682361 Q505208 Q1794 Q1863 Q117676 Q840610 Q1636 Q9005 Q197922 Q6602 Q3859 Q182378 Q6582 Q1486 Q11736 Q2978 Q533157 Q488869 Q1761 Q1854 Q166282 Q3046 Q235 Q17042 Q456 Q3861 Q69060 Q16666 Q3826
(c(Q3839081),P1427,c(Q515))
action approx
action find_reverse_tuple_counts
relation P1427
type Q515
type Q3839081
action count
action filter_type
action find
entity Q6602
relation P1427
type Q515
[ANSWERS] are the start points of around the same number of disasters as that city
[{'concept': 'Q3839081'}, 'P1427', {'concept': 'Q515'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?j ) WHERE { resource:Q6602 property:P1427 ?p . ?p rdf:type ontology:Q515 } } . FILTER ( ?l = ?j ) . { SELECT DISTINCT ?q ( COUNT ( ?b ) AS ?l ) WHERE { ?b property:P1427 ?q . ?q rdf:type ontology:Q515 . ?b rdf:type ontology:Q3839081 } GROUP BY ?q } }
Marseille Uničov Ouarzazate Frankfurt Andorra la Vella Viseu Yamanashi Antipolo Brussels Zhongwei Strasbourg Kigali Putrajaya Carcassonne Buenos Aires Tianjin Regensburg Tianshui Benalmádena Dublin Ho Chi Minh City Alghero Pforzheim Monaco Oakland Lyon Doha Xining Nanjing Muscat
Buenos Aires, Frankfurt and Marseille are the start points of around the same number of disasters as that city
Buenos Aires Frankfurt Marseille
action approx
action find_reverse_tuple_counts
relation start point
type city
type disaster
action count
action filter_type
action find
entity Strasbourg
relation start point
type city
[{'concept': 'disaster'}, 'start point', {'concept': 'city'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?j ) WHERE { resource:Strasbourg property:start_point ?p . ?p rdf:type ontology:city } } . FILTER ( ?l = ?j ) . { SELECT DISTINCT ?q ( COUNT ( ?b ) AS ?l ) WHERE { ?b property:start_point ?q . ?q rdf:type ontology:city . ?b rdf:type ontology:disaster } GROUP BY ?q } }
[]
Clarification
Comparative|Count over More/Less|Mult. entity type|Indirect
P1427
Q515 Q31629 Q18608583
USER
How many cities are the starting points of approximately the same number of types of sport and recurring sporting events as that city ?
(c(Q31629)|c(Q18608583),P1427,c(Q515))
[[{'concept': 'Q31629'}, {'concept': 'Q18608583'}], 'P1427', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { VALUES ( ?e ) { ( ?z ) ( ?x ) } . ?e property:P1427 ?y } . ?z rdf:type ontology:Q31629 . ?y rdf:type ontology:Q7930989 . ?x rdf:type ontology:Q18608583 }
[[{'concept': 'type of sport'}, {'concept': 'recurring sporting event'}], 'start point', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { VALUES ( ?e ) { ( ?z ) ( ?x ) } . ?e property:start_point ?y } . ?z rdf:type ontology:type_of_sport . ?y rdf:type ontology:city . ?x rdf:type ontology:recurring_sporting_event }
[]
city type of sport recurring sporting event
Comparative|Count over More/Less|Mult. entity type|Clarification
Q1486
SYSTEM
Did you mean Buenos Aires ?
(c(Q31629)|c(Q18608583),P1427,c(Q515))
[ANSWER]
[[{'concept': 'Q31629'}, {'concept': 'Q18608583'}], 'P1427', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { VALUES ( ?e ) { ( ?z ) ( ?x ) } . ?e property:P1427 ?y } . ?z rdf:type ontology:Q31629 . ?y rdf:type ontology:Q7930989 . ?x rdf:type ontology:Q18608583 }
Did you mean Buenos Aires ?
Buenos Aires
[[{'concept': 'type of sport'}, {'concept': 'recurring sporting event'}], 'start point', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { VALUES ( ?e ) { ( ?z ) ( ?x ) } . ?e property:start_point ?y } . ?z rdf:type ontology:type_of_sport . ?y rdf:type ontology:city . ?x rdf:type ontology:recurring_sporting_event }
[]
Comparative Reasoning (Count) (All)
USER
No, I meant Frankfurt. Could you tell me the answer for that?
(c(Q31629)|c(Q18608583),P1427,c(Q515))
Q1794
[[{'concept': 'Q31629'}, {'concept': 'Q18608583'}], 'P1427', {'concept': 'Q515'}]
[[{'concept': 'type of sport'}, {'concept': 'recurring sporting event'}], 'start point', {'concept': 'city'}]
[]
SYSTEM
10
Q1794 Q1863 Q117676 Q182378 Q6582 Q2978 Q1761 Q235 Q456 Q3861
(c(Q31629)|c(Q18608583),P1427,c(Q515))
[ANSWER]
[[{'concept': 'Q31629'}, {'concept': 'Q18608583'}], 'P1427', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:P1427 ?y } UNION { ?x property:P1427 ?y } } . ?z rdf:type ontology:Q31629 . ?y rdf:type ontology:Q7930989 . ?x rdf:type ontology:Q18608583 }
Frankfurt Andorra la Vella Viseu Putrajaya Carcassonne Regensburg Dublin Monaco Lyon Doha
10
[[{'concept': 'type of sport'}, {'concept': 'recurring sporting event'}], 'start point', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:start_point ?y } UNION { ?x property:start_point ?y } } . ?z rdf:type ontology:type_of_sport . ?y rdf:type ontology:city . ?x rdf:type ontology:recurring_sporting_event }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1794
P6
Q502895
USER
What people are Frankfurt the head of goverment of ?
(Q1794,P6,c(Q502895))
action filter_type
action find
entity Q1794
relation P6
type Q502895
['Q1794', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?s WHERE { resource:Q1794 property:P6 ?s . ?s rdf:type ontology:Q502895 }
Frankfurt
action filter_type
action find
entity Frankfurt
relation head of government
type common name
['Frankfurt', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?s WHERE { resource:Frankfurt property:head_of_government ?s . ?s rdf:type ontology:common_name }
[]
common name
Q446890 Q96981 Q61249
SYSTEM
Walter Wallmann, Volker Hauff, Petra Roth
Q63882 Q61249 Q1440251 Q96981 Q2576973 Q2592018 Q99842 Q1764115 Q84856 Q113325 Q446890 Q96506 Q2573280 Q2545117 Q2560878 Q117166 Q100507 Q102860 Q1445962
(Q1794,P6,c(Q502895))
action filter_type
action find
entity Q1794
relation P6
type Q502895
[ANSWERS] are Frankfurt the head of goverment of
['Q1794', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?s WHERE { resource:Q1794 property:P6 ?s . ?s rdf:type ontology:Q502895 }
Johann von Miquel Petra Roth Walter Möller Volker Hauff Willi Brundert Wolfram Brück Georg Voigt Kurt Blaum Ludwig Landmann Andreas von Schoeler Walter Wallmann Peter Feldmann Wilhelm Hollbach Walter Kolb Werner Bockelmann Rudi Arndt Friedrich Krebs Daniel Heinrich Mumm von Schwarzenstein Franz Adickes
Walter Wallmann, Volker Hauff and Petra Roth are Frankfurt the head of goverment of
Walter Wallmann Volker Hauff Petra Roth
action filter_type
action find
entity Frankfurt
relation head of government
type common name
['Frankfurt', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?s WHERE { resource:Frankfurt property:head_of_government ?s . ?s rdf:type ontology:common_name }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q490
Q502895
USER
And what about Milan?
(Q490,P6,c(Q502895))
action filter_type
action find
entity Q490
relation P6
type Q502895
['Q490', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?n WHERE { resource:Q490 property:P6 ?n . ?n rdf:type ontology:Q502895 }
Milan
action filter_type
action find
entity Milan
relation head of government
type common name
['Milan', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?n WHERE { resource:Milan property:head_of_government ?n . ?n rdf:type ontology:common_name }
[]
common name
Q697597 Q666504 Q3659902
SYSTEM
Gabriele Albertini, Giuliano Pisapia, Carlo Tognoli
Q302754 Q2527720 Q697597 Q239024 Q17146774 Q3388096 Q666504 Q3609106 Q3619683 Q3762509 Q3659902 Q2427172 Q2249674
(Q490,P6,c(Q502895))
action filter_type
action find
entity Q490
relation P6
type Q502895
[ANSWERS]
['Q490', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?n WHERE { resource:Q490 property:P6 ?n . ?n rdf:type ontology:Q502895 }
Gino Cassinis Virgilio Ferrari Gabriele Albertini Letizia Moratti Giuseppe Sala Pietro Bucalossi Giuliano Pisapia Aldo Aniasi Antonio Greppi Giampiero Borghini Carlo Tognoli Paolo Pillitteri Marco Formentini
Gabriele Albertini Giuliano Pisapia Carlo Tognoli
action filter_type
action find
entity Milan
relation head of government
type common name
['Milan', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?n WHERE { resource:Milan property:head_of_government ?n . ?n rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q8049429
P6
Q56061
USER
Do Yaro have a government lead by those people ?
(Q8049429,P6,Q697597) (Q8049429,P6,Q666504) (Q8049429,P6,Q3659902)
action is_in
entity prev_answer
action find
entity Q8049429
relation P6
['Q8049429', 'P6', 'Q697597'] ['Q8049429', 'P6', 'Q666504'] ['Q8049429', 'P6', 'Q3659902']
ASK WHERE { VALUES ( ?p ) { ( resource:Q302754 ) ( resource:Q2527720 ) ( resource:Q697597 ) } . resource:Q8049429 property:P6 ?p }
Yaro
action is_in
entity prev_answer
action find
entity Yaro
relation head of government
['Yaro', 'head of government', 'Gabriele Albertini'] ['Yaro', 'head of government', 'Giuliano Pisapia'] ['Yaro', 'head of government', 'Carlo Tognoli']
ASK WHERE { VALUES ( ?p ) { ( resource:Gino_Cassinis ) ( resource:Virgilio_Ferrari ) ( resource:Gabriele_Albertini ) } . resource:Yaro property:head_of_government ?p }
[]
administrative territorial entity
SYSTEM
NO
(Q8049429,P6,Q697597) (Q8049429,P6,Q666504) (Q8049429,P6,Q3659902)
action is_in
entity prev_answer
action find
entity Q8049429
relation P6
[ANSWER]
['Q8049429', 'P6', 'Q697597'] ['Q8049429', 'P6', 'Q666504'] ['Q8049429', 'P6', 'Q3659902']
ASK WHERE { VALUES ( ?p ) { ( resource:Q302754 ) ( resource:Q2527720 ) ( resource:Q697597 ) } . resource:Q8049429 property:P6 ?p }
No
action is_in
entity prev_answer
action find
entity Yaro
relation head of government
['Yaro', 'head of government', 'Gabriele Albertini'] ['Yaro', 'head of government', 'Giuliano Pisapia'] ['Yaro', 'head of government', 'Carlo Tognoli']
ASK WHERE { VALUES ( ?p ) { ( resource:Gino_Cassinis ) ( resource:Virgilio_Ferrari ) ( resource:Gabriele_Albertini ) } . resource:Yaro property:head_of_government ?p }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q666504
P26
Q502895
USER
Which person is the life partner of Giuliano Pisapia ?
(c(Q502895),P26,Q666504)
action filter_type
action find
entity Q666504
relation P26
type Q502895
[{'concept': 'Q502895'}, 'P26', 'Q666504']
SELECT DISTINCT ?p WHERE { resource:Q666504 property:P26 ?p . ?p rdf:type ontology:Q502895 }
Giuliano Pisapia
action filter_type
action find
entity Giuliano Pisapia
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Giuliano Pisapia']
SELECT DISTINCT ?p WHERE { resource:Giuliano_Pisapia property:spouse ?p . ?p rdf:type ontology:common_name }
[]
common name
Q3677362
SYSTEM
Cinzia Sasso
Q3677362
(c(Q502895),P26,Q666504)
action filter_type
action find
entity Q666504
relation P26
type Q502895
[ANSWER] is the life partner of Giuliano Pisapia
[{'concept': 'Q502895'}, 'P26', 'Q666504']
SELECT DISTINCT ?p WHERE { resource:Q666504 property:P26 ?p . ?p rdf:type ontology:Q502895 }
Cinzia Sasso
Cinzia Sasso is the life partner of Giuliano Pisapia
Cinzia Sasso
action filter_type
action find
entity Giuliano Pisapia
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Giuliano Pisapia']
SELECT DISTINCT ?p WHERE { resource:Giuliano_Pisapia property:spouse ?p . ?p rdf:type ontology:common_name }
[]