Simple Question (Direct)
Simple Question
Q1166757
P17
Q15617994
USER
Which administrative territory does Charmé belong to ?
(Q1166757,P17,c(Q15617994))
action filter_type
action find
entity Q1166757
relation P17
type Q15617994
['Q1166757', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?g WHERE { resource:Q1166757 property:P17 ?g . ?g rdf:type ontology:Q15617994 }
Charmé
action filter_type
action find
entity Charmé
relation country
type designation for an administrative territorial entity
['Charmé', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Charmé property:country ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142
SYSTEM
France
Q142
(Q1166757,P17,c(Q15617994))
action filter_type
action find
entity Q1166757
relation P17
type Q15617994
Charmé belongs to [ANSWER]
['Q1166757', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?g WHERE { resource:Q1166757 property:P17 ?g . ?g rdf:type ontology:Q15617994 }
France
Charmé belongs to France
France
action filter_type
action find
entity Charmé
relation country
type designation for an administrative territorial entity
['Charmé', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Charmé property:country ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q142
P1444
Q2472587
USER
Which people ends its journey at that administrative territory ?
(c(Q2472587),P1444,Q142)
action filter_type
action find_reverse
entity Q142
relation P1444
type Q2472587
[{'concept': 'Q2472587'}, 'P1444', 'Q142']
SELECT DISTINCT ?r WHERE { ?r property:P1444 resource:Q142 . ?r rdf:type ontology:Q2472587 }
France
action filter_type
action find_reverse
entity France
relation destination point
type people
[{'concept': 'people'}, 'destination point', 'France']
SELECT DISTINCT ?r WHERE { ?r property:destination_point resource:France . ?r rdf:type ontology:people }
[]
people
Q5548127
SYSTEM
Georgians in France
Q5548127
(c(Q2472587),P1444,Q142)
action filter_type
action find_reverse
entity Q142
relation P1444
type Q2472587
[ANSWER] ends its journey at that administrative territory
[{'concept': 'Q2472587'}, 'P1444', 'Q142']
SELECT DISTINCT ?r WHERE { ?r property:P1444 resource:Q142 . ?r rdf:type ontology:Q2472587 }
Georgians in France
Georgians in France ends its journey at that administrative territory
Georgians in France
action filter_type
action find_reverse
entity France
relation destination point
type people
[{'concept': 'people'}, 'destination point', 'France']
SELECT DISTINCT ?r WHERE { ?r property:destination_point resource:France . ?r rdf:type ontology:people }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q142
P1071
Q3305213
USER
Which paintings have France as their terminal assembly location ?
(c(Q3305213),P1071,Q142)
action filter_type
action find_reverse
entity Q142
relation P1071
type Q3305213
[{'concept': 'Q3305213'}, 'P1071', 'Q142']
SELECT DISTINCT ?b WHERE { ?b property:P1071 resource:Q142 . ?b rdf:type ontology:Q3305213 }
France
action filter_type
action find_reverse
entity France
relation location of final assembly
type painting
[{'concept': 'painting'}, 'location of final assembly', 'France']
SELECT DISTINCT ?b WHERE { ?b property:location_of_final_assembly resource:France . ?b rdf:type ontology:painting }
[]
painting
Q18591537 Q18343261 Q18591430
SYSTEM
View of Catanzaro (from “Voyage Pittoresque, ou Description des royaumes de Naples et de Sicile” by Jean-Claude Richard Abbé de Saint Non), Homme en Grande Bottes, View Near Manfredonia (from “Voyage Pittoresque, ou Description des royaumes de Naples et de Sicile” by Jean-Claude Richard Abbé de Saint Non)
Q18591537 Q18343261 Q18591430
(c(Q3305213),P1071,Q142)
action filter_type
action find_reverse
entity Q142
relation P1071
type Q3305213
[ANSWERS]
[{'concept': 'Q3305213'}, 'P1071', 'Q142']
SELECT DISTINCT ?b WHERE { ?b property:P1071 resource:Q142 . ?b rdf:type ontology:Q3305213 }
View of Catanzaro (from “Voyage Pittoresque, ou Description des royaumes de Naples et de Sicile” by Jean-Claude Richard Abbé de Saint Non) Homme en Grande Bottes View Near Manfredonia (from “Voyage Pittoresque, ou Description des royaumes de Naples et de Sicile” by Jean-Claude Richard Abbé de Saint Non)
View of Catanzaro (from “Voyage Pittoresque, ou Description des royaumes de Naples et de Sicile” by Jean-Claude Richard Abbé de Saint Non), Homme en Grande Bottes and View Near Manfredonia (from “Voyage Pittoresque, ou Description des royaumes de Naples et de Sicile” by Jean-Claude Richard Abbé de Saint Non) have France as their terminal assembly location
View of Catanzaro (from “Voyage Pittoresque, ou Description des royaumes de Naples et de Sicile” by Jean-Claude Richard Abbé de Saint Non) Homme en Grande Bottes View Near Manfredonia (from “Voyage Pittoresque, ou Description des royaumes de Naples et de Sicile” by Jean-Claude Richard Abbé de Saint Non)
action filter_type
action find_reverse
entity France
relation location of final assembly
type painting
[{'concept': 'painting'}, 'location of final assembly', 'France']
SELECT DISTINCT ?b WHERE { ?b property:location_of_final_assembly resource:France . ?b rdf:type ontology:painting }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q142
P463
Q484652
USER
What were France a member of ?
(Q142,P463,c(Q484652))
action filter_type
action find
entity Q142
relation P463
type Q484652
['Q142', 'P463', {'concept': 'Q484652'}]
SELECT DISTINCT ?e WHERE { resource:Q142 property:P463 ?e . ?e rdf:type ontology:Q484652 }
France
action filter_type
action find
entity France
relation member of
type international organization
['France', 'member of', {'concept': 'international organization'}]
SELECT DISTINCT ?e WHERE { resource:France property:member_of ?e . ?e rdf:type ontology:international_organization }
[]
international organization
Q81299 Q19771 Q42262
SYSTEM
Organization for Security and Co-operation in Europe, G20, European Space Agency
Q81299 Q1065 Q19771 Q188822 Q37143 Q134102 Q7184 Q42262 Q1043527
(Q142,P463,c(Q484652))
action filter_type
action find
entity Q142
relation P463
type Q484652
France of the [ANSWERS]
['Q142', 'P463', {'concept': 'Q484652'}]
SELECT DISTINCT ?e WHERE { resource:Q142 property:P463 ?e . ?e rdf:type ontology:Q484652 }
Organization for Security and Co-operation in Europe United Nations G20 Asian Development Bank G8 Organisation internationale de la Francophonie North Atlantic Treaty Organisation European Space Agency Multilateral Investment Guarantee Agency
France of the Organization for Security and Co-operation in Europe, G20 and European Space Agency
Organization for Security and Co-operation in Europe G20 European Space Agency
action filter_type
action find
entity France
relation member of
type international organization
['France', 'member of', {'concept': 'international organization'}]
SELECT DISTINCT ?e WHERE { resource:France property:member_of ?e . ?e rdf:type ontology:international_organization }
[]
Simple Question (Ellipsis)
Incomplete|object parent is changed, subject and predicate remain same
Q142
Q180516
USER
And which room?
(Q142,P463,c(Q180516))
action filter_type
action find
entity Q142
relation P463
type Q180516
['Q142', 'P463', {'concept': 'Q180516'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q180516 . resource:Q142 property:P463 ?a }
France
action filter_type
action find
entity France
relation member of
type room
['France', 'member of', {'concept': 'room'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:room . resource:France property:member_of ?a }
[]
room
Q141720
SYSTEM
European Air Transport Command
Q141720
(Q142,P463,c(Q180516))
action filter_type
action find
entity Q142
relation P463
type Q180516
[ANSWER]
['Q142', 'P463', {'concept': 'Q180516'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q180516 . resource:Q142 property:P463 ?a }
European Air Transport Command
European Air Transport Command
action filter_type
action find
entity France
relation member of
type room
['France', 'member of', {'concept': 'room'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:room . resource:France property:member_of ?a }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P138
Q20667921 Q16521 Q83620
USER
How many french administrative divisions are namesakes of exactly 1 taxons or thoroughfares ?
(c(Q16521)|c(Q83620),P138,c(Q20667921))
action count
action equal
action union
action find_reverse_tuple_counts
relation P138
type Q20667921
type Q16521
action find_reverse_tuple_counts
relation P138
type Q20667921
type Q83620
value 1
[[{'concept': 'Q16521'}, {'concept': 'Q83620'}], 'P138', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?b ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?n ) AS ?o ) WHERE { { ?n property:P138 ?i . ?i rdf:type ontology:Q20667921 . ?n rdf:type ontology:Q16521 } UNION { ?n property:P138 ?i . ?i rdf:type ontology:Q20667921 . ?n rdf:type ontology:Q83620 } } GROUP BY ?i } . FILTER ( ?o = 1 ) }
action count
action equal
action union
action find_reverse_tuple_counts
relation named after
type type of french administrative division
type taxon
action find_reverse_tuple_counts
relation named after
type type of french administrative division
type thoroughfare
value 1
[[{'concept': 'taxon'}, {'concept': 'thoroughfare'}], 'named after', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?b ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?n ) AS ?o ) WHERE { { ?n property:named_after ?i . ?i rdf:type ontology:type_of_french_administrative_division . ?n rdf:type ontology:taxon } UNION { ?n property:named_after ?i . ?i rdf:type ontology:type_of_french_administrative_division . ?n rdf:type ontology:thoroughfare } } GROUP BY ?i } . FILTER ( ?o = 1 ) }
[]
type of french administrative division taxon thoroughfare
SYSTEM
13
Q2426877 Q135265 Q22640 Q193819 Q193877 Q773318 Q165090 Q22690 Q18102 Q6548 Q316891 Q3413267 Q41139
(c(Q16521)|c(Q83620),P138,c(Q20667921))
action count
action equal
action union
action find_reverse_tuple_counts
relation P138
type Q20667921
type Q16521
action find_reverse_tuple_counts
relation P138
type Q20667921
type Q83620
value 1
[ANSWER]
[[{'concept': 'Q16521'}, {'concept': 'Q83620'}], 'P138', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?b ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?n ) AS ?o ) WHERE { { ?n property:P138 ?i . ?i rdf:type ontology:Q20667921 . ?n rdf:type ontology:Q16521 } UNION { ?n property:P138 ?i . ?i rdf:type ontology:Q20667921 . ?n rdf:type ontology:Q83620 } } GROUP BY ?i } . FILTER ( ?o = 1 ) }
Épinettes Issy-les-Moulineaux Thionville Vincennes Ivry-sur-Seine Bercy Chambéry Metz Saint-Mandé Orléans Montmorency Bel-Air Melun
13
action count
action equal
action union
action find_reverse_tuple_counts
relation named after
type type of french administrative division
type taxon
action find_reverse_tuple_counts
relation named after
type type of french administrative division
type thoroughfare
value 1
[[{'concept': 'taxon'}, {'concept': 'thoroughfare'}], 'named after', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?b ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?n ) AS ?o ) WHERE { { ?n property:named_after ?i . ?i rdf:type ontology:type_of_french_administrative_division . ?n rdf:type ontology:taxon } UNION { ?n property:named_after ?i . ?i rdf:type ontology:type_of_french_administrative_division . ?n rdf:type ontology:thoroughfare } } GROUP BY ?i } . FILTER ( ?o = 1 ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1624182 Q142
P47
Q1048835
USER
Which political territories are adjacent to France or Alpandeire ?
OR((Q142,P47,c(Q1048835)), (Q1624182,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q142
relation P47
action find
entity Q1624182
relation P47
type Q1048835
{'OR': [['Q142', 'P47', {'concept': 'Q1048835'}], ['Q1624182', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?l WHERE { { VALUES ( ?u ) { ( resource:Q142 ) ( resource:Q1624182 ) } . ?u property:P47 ?l } . ?l rdf:type ontology:Q1048835 }
Alpandeire France
action filter_type
action union
action find
entity France
relation shares border with
action find
entity Alpandeire
relation shares border with
type political territorial entity
{'OR': [['France', 'shares border with', {'concept': 'political territorial entity'}], ['Alpandeire', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?l WHERE { { VALUES ( ?u ) { ( resource:France ) ( resource:Alpandeire ) } . ?u property:shares_border_with ?l } . ?l rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q13116 Q1630392 Q816694 Q183 Q1110772 Q1630147 Q911202 Q540447 Q377954
SYSTEM
Benelux, Jubrique, Benaoján, Germany, Jimera de Líbar, Benadalid, Júzcar, Atajate, Faraján
Q13116 Q1630392 Q816694 Q183 Q1110772 Q1630147 Q911202 Q540447 Q377954
OR((Q142,P47,c(Q1048835)), (Q1624182,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q142
relation P47
action find
entity Q1624182
relation P47
type Q1048835
[ANSWERS] are adjacent to France or Alpandeire
{'OR': [['Q142', 'P47', {'concept': 'Q1048835'}], ['Q1624182', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?l WHERE { { VALUES ( ?u ) { ( resource:Q142 ) ( resource:Q1624182 ) } . ?u property:P47 ?l } . ?l rdf:type ontology:Q1048835 }
Benelux Jubrique Benaoján Germany Jimera de Líbar Benadalid Júzcar Atajate Faraján
Benelux, Jubrique, Benaoján, Germany, Jimera de Líbar, Benadalid, Júzcar, Atajate and Faraján are adjacent to France or Alpandeire
Benelux Jubrique Benaoján Germany Jimera de Líbar Benadalid Júzcar Atajate Faraján
action filter_type
action union
action find
entity France
relation shares border with
action find
entity Alpandeire
relation shares border with
type political territorial entity
{'OR': [['France', 'shares border with', {'concept': 'political territorial entity'}], ['Alpandeire', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?l WHERE { { VALUES ( ?u ) { ( resource:France ) ( resource:Alpandeire ) } . ?u property:shares_border_with ?l } . ?l rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q15617994 Q1048835
USER
Which administrative territories have diplomatic relations with min number of political territories ?
(c(Q1048835),P530,Q953)
action argmin
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q1048835
[{'concept': 'Q1048835'}, 'P530', 'Q953']
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( MIN ( ?k ) AS ?i ) { SELECT DISTINCT ?n ( COUNT ( ?b ) AS ?k ) WHERE { ?n rdf:type ontology:Q15617994 . ?b rdf:type ontology:Q1048835 . ?b property:P530 ?n } GROUP BY ?n } } . FILTER ( ?l = ?i ) . { SELECT DISTINCT ?r ( COUNT ( ?t ) AS ?l ) WHERE { ?t property:P530 ?r . ?r rdf:type ontology:Q15617994 . ?t rdf:type ontology:Q1048835 } GROUP BY ?r } }
action argmin
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', 'Zambia']
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( MIN ( ?k ) AS ?i ) { SELECT DISTINCT ?n ( COUNT ( ?b ) AS ?k ) WHERE { ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b rdf:type ontology:political_territorial_entity . ?b property:diplomatic_relation ?n } GROUP BY ?n } } . FILTER ( ?l = ?i ) . { SELECT DISTINCT ?r ( COUNT ( ?t ) AS ?l ) WHERE { ?t property:diplomatic_relation ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?t rdf:type ontology:political_territorial_entity } GROUP BY ?r } }
[]
designation for an administrative territorial entity political territorial entity
Q805 Q858 Q842
SYSTEM
Yemen, Syria, Oman
Q805 Q784 Q710 Q399 Q398 Q790 Q1013 Q236 Q842 Q970 Q874 Q858
(c(Q1048835),P530,Q953)
action argmin
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q1048835
[ANSWERS] have diplomatic relations with min number of political territories
[{'concept': 'Q1048835'}, 'P530', 'Q953']
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( MIN ( ?k ) AS ?i ) { SELECT DISTINCT ?n ( COUNT ( ?b ) AS ?k ) WHERE { ?n rdf:type ontology:Q15617994 . ?b rdf:type ontology:Q1048835 . ?b property:P530 ?n } GROUP BY ?n } } . FILTER ( ?l = ?i ) . { SELECT DISTINCT ?r ( COUNT ( ?t ) AS ?l ) WHERE { ?t property:P530 ?r . ?r rdf:type ontology:Q15617994 . ?t rdf:type ontology:Q1048835 } GROUP BY ?r } }
Yemen Dominica Kiribati Armenia Bahrain Haiti Lesotho Montenegro Oman Comoros Turkmenistan Syria
Yemen, Syria and Oman have diplomatic relations with min number of political territories
Yemen Syria Oman
action argmin
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', 'Zambia']
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( MIN ( ?k ) AS ?i ) { SELECT DISTINCT ?n ( COUNT ( ?b ) AS ?k ) WHERE { ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b rdf:type ontology:political_territorial_entity . ?b property:diplomatic_relation ?n } GROUP BY ?n } } . FILTER ( ?l = ?i ) . { SELECT DISTINCT ?r ( COUNT ( ?t ) AS ?l ) WHERE { ?t property:diplomatic_relation ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?t rdf:type ontology:political_territorial_entity } GROUP BY ?r } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q842
P85
Q484692
USER
Which is the national anthem of that administrative territory ?
(Q842,P85,c(Q484692))
action filter_type
action find
entity Q842
relation P85
type Q484692
['Q842', 'P85', {'concept': 'Q484692'}]
SELECT DISTINCT ?u WHERE { resource:Q842 property:P85 ?u . ?u rdf:type ontology:Q484692 }
Oman
action filter_type
action find
entity Oman
relation anthem
type hymn
['Oman', 'anthem', {'concept': 'hymn'}]
SELECT DISTINCT ?u WHERE { resource:Oman property:anthem ?u . ?u rdf:type ontology:hymn }
[]
hymn
Clarification for simple ques.
Q842
SYSTEM
Did you mean Oman ?
Q805 Q858 Q842
(Q805,P85,c(Q484692)) (Q858,P85,c(Q484692)) (Q842,P85,c(Q484692))
[ANSWER]
['Q805', 'P85', {'concept': 'Q484692'}] ['Q858', 'P85', {'concept': 'Q484692'}] ['Q842', 'P85', {'concept': 'Q484692'}]
SELECT DISTINCT ?u WHERE { resource:Q842 property:P85 ?u . ?u rdf:type ontology:Q484692 }
Yemen Syria Oman
Did you mean Oman ?
Oman
['Yemen', 'anthem', {'concept': 'hymn'}] ['Syria', 'anthem', {'concept': 'hymn'}] ['Oman', 'anthem', {'concept': 'hymn'}]
SELECT DISTINCT ?u WHERE { resource:Oman property:anthem ?u . ?u rdf:type ontology:hymn }
[]
Simple Question (Coreferenced)
USER
Yes
(Q842,P85,c(Q484692))
['Q842', 'P85', {'concept': 'Q484692'}]
['Oman', 'anthem', {'concept': 'hymn'}]
[]
Q634111
SYSTEM
Nashid as-Salaam as-Sultani
Q634111
(Q842,P85,c(Q484692))
action filter_type
action find
entity Q842
relation P85
type Q484692
The national anthem of that administrative territory is the [ANSWER]
['Q842', 'P85', {'concept': 'Q484692'}]
SELECT DISTINCT ?u WHERE { resource:Q842 property:P85 ?u . ?u rdf:type ontology:Q484692 }
Nashid as-Salaam as-Sultani
The national anthem of that administrative territory is the Nashid as-Salaam as-Sultani
Nashid as-Salaam as-Sultani
action filter_type
action find
entity Oman
relation anthem
type hymn
['Oman', 'anthem', {'concept': 'hymn'}]
SELECT DISTINCT ?u WHERE { resource:Oman property:anthem ?u . ?u rdf:type ontology:hymn }
[]