Simple Question (Direct)
Simple Question
Q3271611
P106
Q12737077
USER
What are the professions of Léonce Vieljeux ?
(Q3271611,P106,c(Q12737077))
action filter_type
action find
entity Q3271611
relation P106
type Q12737077
['Q3271611', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?m WHERE { resource:Q3271611 property:P106 ?m . ?m rdf:type ontology:Q12737077 }
Léonce Vieljeux
action filter_type
action find
entity Léonce Vieljeux
relation occupation
type occupation
['Léonce Vieljeux', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?m WHERE { resource:Léonce_Vieljeux property:occupation ?m . ?m rdf:type ontology:occupation }
[]
occupation
Q500251 Q82955 Q43845
SYSTEM
shipowner, politician, businessperson
Q500251 Q82955 Q43845
(Q3271611,P106,c(Q12737077))
action filter_type
action find
entity Q3271611
relation P106
type Q12737077
The professions of Léonce Vieljeux are the [ANSWERS]
['Q3271611', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?m WHERE { resource:Q3271611 property:P106 ?m . ?m rdf:type ontology:Q12737077 }
shipowner politician businessperson
The professions of Léonce Vieljeux are the shipowner, politician and businessperson
shipowner politician businessperson
action filter_type
action find
entity Léonce Vieljeux
relation occupation
type occupation
['Léonce Vieljeux', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?m WHERE { resource:Léonce_Vieljeux property:occupation ?m . ?m rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q500251 Q82955 Q43845
P39
Q502895
USER
Which people were responsible for occupying the position of shipowner, politician and businessperson ?
(c(Q502895),P39,Q500251) (c(Q502895),P39,Q82955) (c(Q502895),P39,Q43845)
action union
action filter_type
action find_reverse
entity Q500251
relation P39
type Q502895
action filter_type
action find_reverse
entity Q82955
relation P39
type Q502895
action filter_type
action find_reverse
entity Q43845
relation P39
type Q502895
[{'concept': 'Q502895'}, 'P39', 'Q500251'] [{'concept': 'Q502895'}, 'P39', 'Q82955'] [{'concept': 'Q502895'}, 'P39', 'Q43845']
SELECT DISTINCT ?b WHERE { { ?b property:P39 resource:Q500251 . ?b rdf:type ontology:Q502895 } UNION { ?b property:P39 resource:Q82955 . ?b rdf:type ontology:Q502895 } }
shipowner politician businessperson
action union
action filter_type
action find_reverse
entity shipowner
relation position held
type common name
action filter_type
action find_reverse
entity politician
relation position held
type common name
action filter_type
action find_reverse
entity businessperson
relation position held
type common name
[{'concept': 'common name'}, 'position held', 'shipowner'] [{'concept': 'common name'}, 'position held', 'politician'] [{'concept': 'common name'}, 'position held', 'businessperson']
SELECT DISTINCT ?b WHERE { { ?b property:position_held resource:shipowner . ?b rdf:type ontology:common_name } UNION { ?b property:position_held resource:politician . ?b rdf:type ontology:common_name } }
[]
common name
Q16025728 Q26215129 Q119937
SYSTEM
Adolphe Fraissinet, Morteza Azari, Henri-Louis Pernod
Q16025728 Q26215129 Q119937
(c(Q502895),P39,Q500251) (c(Q502895),P39,Q82955) (c(Q502895),P39,Q43845)
action union
action filter_type
action find_reverse
entity Q500251
relation P39
type Q502895
action filter_type
action find_reverse
entity Q82955
relation P39
type Q502895
action filter_type
action find_reverse
entity Q43845
relation P39
type Q502895
[ANSWERS] were responsible for occupying the position of shipowner, politician and businessperson
[{'concept': 'Q502895'}, 'P39', 'Q500251'] [{'concept': 'Q502895'}, 'P39', 'Q82955'] [{'concept': 'Q502895'}, 'P39', 'Q43845']
SELECT DISTINCT ?b WHERE { { ?b property:P39 resource:Q500251 . ?b rdf:type ontology:Q502895 } UNION { ?b property:P39 resource:Q82955 . ?b rdf:type ontology:Q502895 } }
Adolphe Fraissinet Morteza Azari Henri-Louis Pernod
Adolphe Fraissinet, Morteza Azari and Henri-Louis Pernod were responsible for occupying the position of shipowner, politician and businessperson
Adolphe Fraissinet Morteza Azari Henri-Louis Pernod
action union
action filter_type
action find_reverse
entity shipowner
relation position held
type common name
action filter_type
action find_reverse
entity politician
relation position held
type common name
action filter_type
action find_reverse
entity businessperson
relation position held
type common name
[{'concept': 'common name'}, 'position held', 'shipowner'] [{'concept': 'common name'}, 'position held', 'politician'] [{'concept': 'common name'}, 'position held', 'businessperson']
SELECT DISTINCT ?b WHERE { { ?b property:position_held resource:shipowner . ?b rdf:type ontology:common_name } UNION { ?b property:position_held resource:politician . ?b rdf:type ontology:common_name } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q16025728
P19
Q515
USER
Where was Adolphe Fraissinet born ?
(Q16025728,P19,c(Q515))
action filter_type
action find
entity Q16025728
relation P19
type Q515
['Q16025728', 'P19', {'concept': 'Q515'}]
SELECT DISTINCT ?d WHERE { resource:Q16025728 property:P19 ?d . ?d rdf:type ontology:Q515 }
Adolphe Fraissinet
action filter_type
action find
entity Adolphe Fraissinet
relation place of birth
type city
['Adolphe Fraissinet', 'place of birth', {'concept': 'city'}]
SELECT DISTINCT ?d WHERE { resource:Adolphe_Fraissinet property:place_of_birth ?d . ?d rdf:type ontology:city }
[]
city
Q23482
SYSTEM
Marseille
Q23482
(Q16025728,P19,c(Q515))
action filter_type
action find
entity Q16025728
relation P19
type Q515
Adolphe Fraissinet was born in [ANSWER]
['Q16025728', 'P19', {'concept': 'Q515'}]
SELECT DISTINCT ?d WHERE { resource:Q16025728 property:P19 ?d . ?d rdf:type ontology:Q515 }
Marseille
Adolphe Fraissinet was born in Marseille
Marseille
action filter_type
action find
entity Adolphe Fraissinet
relation place of birth
type city
['Adolphe Fraissinet', 'place of birth', {'concept': 'city'}]
SELECT DISTINCT ?d WHERE { resource:Adolphe_Fraissinet property:place_of_birth ?d . ?d rdf:type ontology:city }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q1329157
Q515
USER
And what about Elias Tsartilidis?
(Q1329157,P19,c(Q515))
action filter_type
action find
entity Q1329157
relation P19
type Q515
['Q1329157', 'P19', {'concept': 'Q515'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q515 . resource:Q1329157 property:P19 ?h }
Elias Tsartilidis
action filter_type
action find
entity Elias Tsartilidis
relation place of birth
type city
['Elias Tsartilidis', 'place of birth', {'concept': 'city'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:city . resource:Elias_Tsartilidis property:place_of_birth ?h }
[]
city
Q3200
SYSTEM
Salzgitter
Q3200
(Q1329157,P19,c(Q515))
action filter_type
action find
entity Q1329157
relation P19
type Q515
[ANSWER]
['Q1329157', 'P19', {'concept': 'Q515'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q515 . resource:Q1329157 property:P19 ?h }
Salzgitter
Salzgitter
action filter_type
action find
entity Elias Tsartilidis
relation place of birth
type city
['Elias Tsartilidis', 'place of birth', {'concept': 'city'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:city . resource:Elias_Tsartilidis property:place_of_birth ?h }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Indirect
P206
Q1267889 Q355304 Q515
USER
How many cities are located nearby approximately the same number of waterways or watercourses as that city ?
(c(Q515),P206,c(Q1267889)|c(Q355304))
action count
action approx
action union
action find_tuple_counts
relation P206
type Q515
type Q1267889
action find_tuple_counts
relation P206
type Q515
type Q355304
action count
action filter_multi_types
action find
entity Q3200
relation P206
type Q1267889
type Q355304
[{'concept': 'Q515'}, 'P206', [{'concept': 'Q1267889'}, {'concept': 'Q355304'}]]
SELECT DISTINCT ( COUNT ( ?i ) AS ?s ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?t ) AS ?r ) WHERE { ?t rdf:type ?v . VALUES ( ?v ) { ( ontology:Q1267889 ) ( ontology:Q355304 ) } } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?o ) WHERE { resource:Q3200 property:P206 ?k . { { ?k rdf:type ontology:Q1267889 } UNION { ?k rdf:type ontology:Q355304 } } } } . FILTER ( ?r = ?o ) }
action count
action approx
action union
action find_tuple_counts
relation located next to body of water
type city
type waterway
action find_tuple_counts
relation located next to body of water
type city
type watercourse
action count
action filter_multi_types
action find
entity Salzgitter
relation located next to body of water
type waterway
type watercourse
[{'concept': 'city'}, 'located next to body of water', [{'concept': 'waterway'}, {'concept': 'watercourse'}]]
SELECT DISTINCT ( COUNT ( ?i ) AS ?s ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?t ) AS ?r ) WHERE { ?t rdf:type ?v . VALUES ( ?v ) { ( ontology:waterway ) ( ontology:watercourse ) } } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?o ) WHERE { resource:Salzgitter property:located_next_to_body_of_water ?k . { { ?k rdf:type ontology:waterway } UNION { ?k rdf:type ontology:watercourse } } } } . FILTER ( ?r = ?o ) }
[]
waterway watercourse city
SYSTEM
87
Q1410 Q1794 Q1863 Q1865 Q1519 Q496499 Q3974 Q846877 Q19689 Q1486 Q2966 Q34217 Q496479 Q602903 Q1461 Q488869 Q217432 Q827041 Q3572 Q623549 Q4024 Q3806 Q2973 Q34261 Q3014 Q1773 Q1844 Q14821 Q819587 Q3958 Q3955 Q23430 Q633272 Q2773 Q612815 Q320943 Q1858 Q633935 Q320416 Q7473516 Q1761 Q890122 Q4007 Q7070 Q3826 Q653545 Q8684 Q270704 Q41474 Q4174 Q4346 Q3838 Q2833 Q1209 Q23661 Q3931 Q3751 Q3750 Q3200 Q157835 Q847550 Q3936 Q2936 Q646780 Q3214 Q1533 Q1530 Q1953 Q5838 Q7027 Q3857 Q3994 Q19660 Q11194 Q3915 Q2119 Q3069 Q1720 Q1721 Q329996 Q3904 Q695920 Q2910 Q3861 Q1899 Q2999 Q2844
(c(Q515),P206,c(Q1267889)|c(Q355304))
action count
action approx
action union
action find_tuple_counts
relation P206
type Q515
type Q1267889
action find_tuple_counts
relation P206
type Q515
type Q355304
action count
action filter_multi_types
action find
entity Q3200
relation P206
type Q1267889
type Q355304
[ANSWER]
[{'concept': 'Q515'}, 'P206', [{'concept': 'Q1267889'}, {'concept': 'Q355304'}]]
SELECT DISTINCT ( COUNT ( ?i ) AS ?s ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?t ) AS ?r ) WHERE { ?t rdf:type ?v . VALUES ( ?v ) { ( ontology:Q1267889 ) ( ontology:Q355304 ) } } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?o ) WHERE { resource:Q3200 property:P206 ?k . { { ?k rdf:type ontology:Q1267889 } UNION { ?k rdf:type ontology:Q355304 } } } } . FILTER ( ?r = ?o ) }
Gibraltar Frankfurt Andorra la Vella Kuala Lumpur Abu Dhabi Kazuno Landshut Semboku Tirana Buenos Aires Heidelberg Oxford Yokote Yurihonjō Manila Benalmádena Port Harcourt Beroun Tunis Puerto de la Cruz Frankfurt (Oder) Tübingen Darmstadt Port-au-Prince Wolfsburg Riga Vaduz Coburg Noshiro Neubrandenburg Weimar Ulaanbaatar Yuzawa Braunschweig Garachico Matsudo Hanoi Oga Tartessos Tokyo Dublin Bolhrad Rosenheim Eisenach Muscat Kita-Akita Seoul Třebíč Kingstown Emden Waren (Müritz) Kinshasa Freiburg im Breisgau Free Hanseatic City of Bremen Wellington Brandenburg an der Havel Praia Gera Salzgitter Zaporizhzhya Nikaho Bamberg Oldenburg Katagami Cottbus Caracas Baghdad Yerevan Kabul Straubing Wilhelmshaven Kempten Bucharest Sarajevo Antananarivo Mannheim Bottrop Mainz Wiesbaden Ōdate Mbabane Daisen Ludwigshafen Doha Kyiv Würzburg Brasília
87
action count
action approx
action union
action find_tuple_counts
relation located next to body of water
type city
type waterway
action find_tuple_counts
relation located next to body of water
type city
type watercourse
action count
action filter_multi_types
action find
entity Salzgitter
relation located next to body of water
type waterway
type watercourse
[{'concept': 'city'}, 'located next to body of water', [{'concept': 'waterway'}, {'concept': 'watercourse'}]]
SELECT DISTINCT ( COUNT ( ?i ) AS ?s ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?t ) AS ?r ) WHERE { ?t rdf:type ?v . VALUES ( ?v ) { ( ontology:waterway ) ( ontology:watercourse ) } } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?o ) WHERE { resource:Salzgitter property:located_next_to_body_of_water ?k . { { ?k rdf:type ontology:waterway } UNION { ?k rdf:type ontology:watercourse } } } } . FILTER ( ?r = ?o ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q18205452 Q3271611
P27
Q15617994
USER
Which administrative territories are Léonce Vieljeux or Jesús Castro-Balbi a civilian of ?
OR((Q3271611,P27,c(Q15617994)), (Q18205452,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q3271611
relation P27
action find
entity Q18205452
relation P27
type Q15617994
{'OR': [['Q3271611', 'P27', {'concept': 'Q15617994'}], ['Q18205452', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?m WHERE { { VALUES ( ?g ) { ( resource:Q3271611 ) ( resource:Q18205452 ) } . ?g property:P27 ?m } . ?m rdf:type ontology:Q15617994 }
Jesús Castro-Balbi Léonce Vieljeux
action filter_type
action union
action find
entity Léonce Vieljeux
relation country of citizenship
action find
entity Jesús Castro-Balbi
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Léonce Vieljeux', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Jesús Castro-Balbi', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?m WHERE { { VALUES ( ?g ) { ( resource:Léonce_Vieljeux ) ( resource:Jesús_Castro-Balbi ) } . ?g property:country_of_citizenship ?m } . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142 Q30
SYSTEM
France, United States of America
Q142 Q30
OR((Q3271611,P27,c(Q15617994)), (Q18205452,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q3271611
relation P27
action find
entity Q18205452
relation P27
type Q15617994
[ANSWERS] are Léonce Vieljeux or Jesús Castro-Balbi a civilian of
{'OR': [['Q3271611', 'P27', {'concept': 'Q15617994'}], ['Q18205452', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?m WHERE { { VALUES ( ?g ) { ( resource:Q3271611 ) ( resource:Q18205452 ) } . ?g property:P27 ?m } . ?m rdf:type ontology:Q15617994 }
France United States of America
France and United States of America are Léonce Vieljeux or Jesús Castro-Balbi a civilian of
France United States of America
action filter_type
action union
action find
entity Léonce Vieljeux
relation country of citizenship
action find
entity Jesús Castro-Balbi
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Léonce Vieljeux', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Jesús Castro-Balbi', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?m WHERE { { VALUES ( ?g ) { ( resource:Léonce_Vieljeux ) ( resource:Jesús_Castro-Balbi ) } . ?g property:country_of_citizenship ?m } . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q142 Q30
P1532
Q6979593
USER
Which national association football teams represent France and United States of America ?
(c(Q6979593),P1532,Q142) (c(Q6979593),P1532,Q30)
action union
action filter_type
action find_reverse
entity Q142
relation P1532
type Q6979593
action filter_type
action find_reverse
entity Q30
relation P1532
type Q6979593
[{'concept': 'Q6979593'}, 'P1532', 'Q142'] [{'concept': 'Q6979593'}, 'P1532', 'Q30']
SELECT DISTINCT ?a WHERE { { ?a property:P1532 resource:Q142 . ?a rdf:type ontology:Q6979593 } UNION { ?a property:P1532 resource:Q30 . ?a rdf:type ontology:Q6979593 } }
France United States of America
action union
action filter_type
action find_reverse
entity France
relation country for sport
type national association football team
action filter_type
action find_reverse
entity United States of America
relation country for sport
type national association football team
[{'concept': 'national association football team'}, 'country for sport', 'France'] [{'concept': 'national association football team'}, 'country for sport', 'United States of America']
SELECT DISTINCT ?a WHERE { { ?a property:country_for_sport resource:France . ?a rdf:type ontology:national_association_football_team } UNION { ?a property:country_for_sport resource:United_States_of_America . ?a rdf:type ontology:national_association_football_team } }
[]
national association football team
Q751670 Q334526 Q32970
SYSTEM
France women's national football team, United States women's national soccer team, France women's national under-19 football team
Q751670 Q32970 Q3590215 Q3590145 Q4534660 Q7893547 Q1671357 Q334526 Q3873965 Q7893550
(c(Q6979593),P1532,Q142) (c(Q6979593),P1532,Q30)
action union
action filter_type
action find_reverse
entity Q142
relation P1532
type Q6979593
action filter_type
action find_reverse
entity Q30
relation P1532
type Q6979593
And [ANSWERS] represent France and United States of America
[{'concept': 'Q6979593'}, 'P1532', 'Q142'] [{'concept': 'Q6979593'}, 'P1532', 'Q30']
SELECT DISTINCT ?a WHERE { { ?a property:P1532 resource:Q142 . ?a rdf:type ontology:Q6979593 } UNION { ?a property:P1532 resource:Q30 . ?a rdf:type ontology:Q6979593 } }
France women's national football team France women's national under-19 football team France Olympic football team France women's national under-17 football team France national youth football team United States women's national under-17 soccer team United States women's national under-20 soccer team United States women's national soccer team United States Olympic football team United States women's national under-23 soccer team
And France women's national football team, United States women's national soccer team and France women's national under-19 football team represent France and United States of America
France women's national football team United States women's national soccer team France women's national under-19 football team
action union
action filter_type
action find_reverse
entity France
relation country for sport
type national association football team
action filter_type
action find_reverse
entity United States of America
relation country for sport
type national association football team
[{'concept': 'national association football team'}, 'country for sport', 'France'] [{'concept': 'national association football team'}, 'country for sport', 'United States of America']
SELECT DISTINCT ?a WHERE { { ?a property:country_for_sport resource:France . ?a rdf:type ontology:national_association_football_team } UNION { ?a property:country_for_sport resource:United_States_of_America . ?a rdf:type ontology:national_association_football_team } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q334526
P641
Q349
USER
What did that national association football team participate in ?
(Q334526,P641,c(Q349))
action filter_type
action find
entity Q334526
relation P641
type Q349
['Q334526', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?o WHERE { resource:Q334526 property:P641 ?o . ?o rdf:type ontology:Q349 }
United States women's national soccer team
action filter_type
action find
entity United States women's national soccer team
relation sport
type sport
["United States women's national soccer team", 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?o WHERE { resource:United_States_women's_national_soccer_team property:sport ?o . ?o rdf:type ontology:sport }
[]
sport
Clarification for simple ques.
Q32970
SYSTEM
Did you mean France women's national under-19 football team ?
Q751670 Q334526 Q32970
(Q751670,P641,c(Q349)) (Q334526,P641,c(Q349)) (Q32970,P641,c(Q349))
[ANSWER]
['Q751670', 'P641', {'concept': 'Q349'}] ['Q334526', 'P641', {'concept': 'Q349'}] ['Q32970', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?o WHERE { resource:Q334526 property:P641 ?o . ?o rdf:type ontology:Q349 }
France women's national football team United States women's national soccer team France women's national under-19 football team
Did you mean France women's national under-19 football team ?
France women's national under-19 football team
["France women's national football team", 'sport', {'concept': 'sport'}] ["United States women's national soccer team", 'sport', {'concept': 'sport'}] ["France women's national under-19 football team", 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?o WHERE { resource:United_States_women's_national_soccer_team property:sport ?o . ?o rdf:type ontology:sport }
[]
Simple Question (Coreferenced)
USER
No, I meant United States women's national soccer team. Could you tell me the answer for that?
(Q334526,P641,c(Q349))
Q334526
['Q334526', 'P641', {'concept': 'Q349'}]
["United States women's national soccer team", 'sport', {'concept': 'sport'}]
[]
Q606060
SYSTEM
women's association football
Q606060
(Q334526,P641,c(Q349))
action filter_type
action find
entity Q334526
relation P641
type Q349
That national association football team participated in [ANSWER]
['Q334526', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?o WHERE { resource:Q334526 property:P641 ?o . ?o rdf:type ontology:Q349 }
women's association football
That national association football team participated in women's association football
women's association football
action filter_type
action find
entity United States women's national soccer team
relation sport
type sport
["United States women's national soccer team", 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?o WHERE { resource:United_States_women's_national_soccer_team property:sport ?o . ?o rdf:type ontology:sport }
[]