Simple Question (Direct)
Simple Question
Q3589109
P189
Q355304
USER
Where was The Youth of Agde discovered ?
(Q3589109,P189,c(Q355304))
action filter_type
action find
entity Q3589109
relation P189
type Q355304
['Q3589109', 'P189', {'concept': 'Q355304'}]
SELECT DISTINCT ?q WHERE { resource:Q3589109 property:P189 ?q . ?q rdf:type ontology:Q355304 }
The Youth of Agde
action filter_type
action find
entity The Youth of Agde
relation location of discovery
type watercourse
['The Youth of Agde', 'location of discovery', {'concept': 'watercourse'}]
SELECT DISTINCT ?q WHERE { resource:The_Youth_of_Agde property:location_of_discovery ?q . ?q rdf:type ontology:watercourse }
[]
watercourse
Q81773
SYSTEM
Hérault
Q81773
(Q3589109,P189,c(Q355304))
action filter_type
action find
entity Q3589109
relation P189
type Q355304
The Youth of Agde was discovered in [ANSWER]
['Q3589109', 'P189', {'concept': 'Q355304'}]
SELECT DISTINCT ?q WHERE { resource:Q3589109 property:P189 ?q . ?q rdf:type ontology:Q355304 }
Hérault
The Youth of Agde was discovered in Hérault
Hérault
action filter_type
action find
entity The Youth of Agde
relation location of discovery
type watercourse
['The Youth of Agde', 'location of discovery', {'concept': 'watercourse'}]
SELECT DISTINCT ?q WHERE { resource:The_Youth_of_Agde property:location_of_discovery ?q . ?q rdf:type ontology:watercourse }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3589109
P135
Q968159
USER
Which art movement did The Youth of Agde belong to
(Q3589109,P135,c(Q968159))
action filter_type
action find
entity Q3589109
relation P135
type Q968159
['Q3589109', 'P135', {'concept': 'Q968159'}]
SELECT DISTINCT ?m WHERE { resource:Q3589109 property:P135 ?m . ?m rdf:type ontology:Q968159 }
The Youth of Agde
action filter_type
action find
entity The Youth of Agde
relation movement
type art movement
['The Youth of Agde', 'movement', {'concept': 'art movement'}]
SELECT DISTINCT ?m WHERE { resource:The_Youth_of_Agde property:movement ?m . ?m rdf:type ontology:art_movement }
[]
art movement
Q1580145
SYSTEM
Hellenistic sculpture
Q1580145
(Q3589109,P135,c(Q968159))
action filter_type
action find
entity Q3589109
relation P135
type Q968159
The Youth of Agde belonged to [ANSWER]
['Q3589109', 'P135', {'concept': 'Q968159'}]
SELECT DISTINCT ?m WHERE { resource:Q3589109 property:P135 ?m . ?m rdf:type ontology:Q968159 }
Hellenistic sculpture
The Youth of Agde belonged to Hellenistic sculpture
Hellenistic sculpture
action filter_type
action find
entity The Youth of Agde
relation movement
type art movement
['The Youth of Agde', 'movement', {'concept': 'art movement'}]
SELECT DISTINCT ?m WHERE { resource:The_Youth_of_Agde property:movement ?m . ?m rdf:type ontology:art_movement }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3589109
P180
Q502895
USER
What is expressed in that work of art ?
(Q1580145,P180,c(Q502895))
action filter_type
action find
entity Q3589109
relation P180
type Q502895
['Q1580145', 'P180', {'concept': 'Q502895'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q502895 . resource:Q3589109 property:P180 ?w }
The Youth of Agde
action filter_type
action find
entity The Youth of Agde
relation depicts
type common name
['Hellenistic sculpture', 'depicts', {'concept': 'common name'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:common_name . resource:The_Youth_of_Agde property:depicts ?w }
[]
common name
Q8409
SYSTEM
Alexander the Great
Q8409
(Q1580145,P180,c(Q502895))
action filter_type
action find
entity Q3589109
relation P180
type Q502895
[ANSWER] is expressed in that work of art
['Q1580145', 'P180', {'concept': 'Q502895'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q502895 . resource:Q3589109 property:P180 ?w }
Alexander the Great
Alexander the Great is expressed in that work of art
Alexander the Great
action filter_type
action find
entity The Youth of Agde
relation depicts
type common name
['Hellenistic sculpture', 'depicts', {'concept': 'common name'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:common_name . resource:The_Youth_of_Agde property:depicts ?w }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P669
Q811979 Q34442 Q838948
USER
Which works of art are located on min number of architectural structures and roads ?
(c(Q838948),P669,c(Q811979)|c(Q34442))
action argmin
action union
action find_tuple_counts
relation P669
type Q838948
type Q811979
action find_tuple_counts
relation P669
type Q838948
type Q34442
[{'concept': 'Q838948'}, 'P669', [{'concept': 'Q811979'}, {'concept': 'Q34442'}]]
SELECT DISTINCT ?l WHERE { FILTER ( ?m = ?z ) . { SELECT DISTINCT ( COUNT ( ?n ) AS ?m ) ?l WHERE { { ?l property:P669 ?n . ?l rdf:type ontology:Q838948 . ?n rdf:type ontology:Q34442 } UNION { ?l rdf:type ontology:Q838948 . ?n rdf:type ontology:Q811979 . ?l property:P669 ?n } } GROUP BY ?l } . { SELECT DISTINCT ( MIN ( ?i ) AS ?z ) { SELECT DISTINCT ( COUNT ( ?o ) AS ?i ) ?p WHERE { VALUES ( ?v ) { ( ontology:Q811979 ) ( ontology:Q34442 ) } . ?o rdf:type ?v } GROUP BY ?p } } }
action argmin
action union
action find_tuple_counts
relation located on street
type work of art
type architectural structure
action find_tuple_counts
relation located on street
type work of art
type road
[{'concept': 'work of art'}, 'located on street', [{'concept': 'architectural structure'}, {'concept': 'road'}]]
SELECT DISTINCT ?l WHERE { FILTER ( ?m = ?z ) . { SELECT DISTINCT ( COUNT ( ?n ) AS ?m ) ?l WHERE { { ?l property:located_on_street ?n . ?l rdf:type ontology:work_of_art . ?n rdf:type ontology:road } UNION { ?l rdf:type ontology:work_of_art . ?n rdf:type ontology:architectural_structure . ?l property:located_on_street ?n } } GROUP BY ?l } . { SELECT DISTINCT ( MIN ( ?i ) AS ?z ) { SELECT DISTINCT ( COUNT ( ?o ) AS ?i ) ?p WHERE { VALUES ( ?v ) { ( ontology:architectural_structure ) ( ontology:road ) } . ?o rdf:type ?v } GROUP BY ?p } } }
[]
architectural structure road work of art
Q6091808 Q3205071 Q3076179
SYSTEM
It Happened on Fifth Avenue, L'Âme de la France, fontaine de l'Avril
Q23316603 Q23038443 Q3153574 Q26485436 Q18159872 Q15181960 Q23640066 Q2994621 Q27311620 Q17522039 Q3323388 Q17341711 Q3176192 Q4868732 Q23639892 Q23639893 Q23639894 Q23639895 Q23639896 Q23639897 Q23316480 Q3034186 Q392352 Q5185458 Q23448424 Q3076179 Q15878813 Q15176615 Q3205071 Q3323377 Q23316374 Q20800382 Q23384378 Q27096149 Q3088245 Q16014280 Q3497616 Q26485491 Q23637014 Q18327733 Q1870178 Q19930022 Q17518367 Q23459664 Q3531119 Q2869431 Q7604500 Q17527162 Q18156540 Q2939929 Q15056206 Q3212087 Q26319458 Q23459612 Q26485600 Q2559736 Q16303789 Q4904900 Q15211575 Q6091808 Q3076128 Q25339467 Q1248701 Q23640011 Q3203476 Q23459626 Q3076294 Q15726556 Q12432989 Q23639916 Q23639913 Q23638031 Q3140571 Q18157051 Q27081628 Q26516071 Q26485518 Q23593222 Q15160973 Q23320730 Q15211805 Q23638028 Q23639905 Q18168592 Q7604492 Q23316244 Q23593212 Q23383008 Q23637015 Q3323414 Q23639903 Q3323370 Q23646412 Q3486535 Q3497628 Q23640053 Q23448433 Q19902765 Q3323390 Q23316707
(c(Q838948),P669,c(Q811979)|c(Q34442))
action argmin
action union
action find_tuple_counts
relation P669
type Q838948
type Q811979
action find_tuple_counts
relation P669
type Q838948
type Q34442
It happened on Fifth Avenue, L'Âme de la France and fontaine de l'Avril are located on min number of architectural structures and roads
[{'concept': 'Q838948'}, 'P669', [{'concept': 'Q811979'}, {'concept': 'Q34442'}]]
SELECT DISTINCT ?l WHERE { FILTER ( ?m = ?z ) . { SELECT DISTINCT ( COUNT ( ?n ) AS ?m ) ?l WHERE { { ?l property:P669 ?n . ?l rdf:type ontology:Q838948 . ?n rdf:type ontology:Q34442 } UNION { ?l rdf:type ontology:Q838948 . ?n rdf:type ontology:Q811979 . ?l property:P669 ?n } } GROUP BY ?l } . { SELECT DISTINCT ( MIN ( ?i ) AS ?z ) { SELECT DISTINCT ( COUNT ( ?o ) AS ?i ) ?p WHERE { VALUES ( ?v ) { ( ontology:Q811979 ) ( ontology:Q34442 ) } . ?o rdf:type ?v } GROUP BY ?p } } }
Man Equestrian statue of Prince Albert Interpénétration des deux espaces Porta de Franca Equestrian statue of the Duke of Wellington Luigi Cherubini's tomb Valentin Haüy Consigne à vie Monument to Juan Bravo Murillo Basse-cour Paul Baudry's tomb Monument aux morts de l'île du Souvenir Joan of Arc, Liberator of France Batcolumn Africa North America South America Asia Europe Oceania Hommage to Léon Monumento a los Caidos por España Frédéric Chopin's tomb Crimean War Memorial Monument to Théophile Roussel fontaine de l'Avril Lost Luggage Depot Alexandre Aguado's tomb L'Âme de la France François-Joseph Lefebvre's tomb Penelope equestrian statue of Louis XIV Monument to Philippe Pinel Memorial to Walter Besant From Boullée to Eternity Hydrorrhage equestrian statue of La Fayette Cyclope Saint Denis Faceted Column Lloyd Memorial Equestrian statue of Edward VII Anne of Brittany Comte de la Pérouse Tombe du Dragon Atlas Statue of Sherlock Holmes Statue of Queen Anne equestrian statue of Étienne Marcel Carolina Théodore Barrière's tomb The Fourth Apple Monument To Edward Onslow Ford,Including Pair Of Lamp Standards Day Star Pyramide du Centenaire Millennium Monument of Brest La République Big 4 Eugène Gautier's tomb It Happened on Fifth Avenue fontaine de Diane Eagle Squadron Memorial Statue of John Henry Newman Bust of Habib Bourguiba L'Heure de tous Monument to Diego Brosset fontaine du jardin Villemin Monochrome for Paris Oscar Wilde's tomb Monument to Aristide Briand Thomas Jefferson Forêt de candélabres Horizons suspendus Pulitzer Fountain Memorial To Sir W S Gilbert Meath Memorial Dragon de Dragignan Monument to Alphand Richard Wallace's tomb 12th Arrondissement War Memorial Piñeyro's tomb Red Balcony Monument to François Coppée equestrian statue of Albert I Equestrian statue of Charles I La Dame de Bercy Luís de Camões Young Athletes Chevalier de la Barre Monument to Mickiewicz The Messenger Héloïse and Abélard's tomb Reconciliation Slat equestrian statue of Simón Bolívar Bust of Lucien Guitry La Naissance des formes Equestrian statue of George III Delille's tomb L'Un
It happened on Fifth Avenue, L'Âme de la France and fontaine de l'Avril are located on min number of architectural structures and roads
It Happened on Fifth Avenue L'Âme de la France fontaine de l'Avril
action argmin
action union
action find_tuple_counts
relation located on street
type work of art
type architectural structure
action find_tuple_counts
relation located on street
type work of art
type road
[{'concept': 'work of art'}, 'located on street', [{'concept': 'architectural structure'}, {'concept': 'road'}]]
SELECT DISTINCT ?l WHERE { FILTER ( ?m = ?z ) . { SELECT DISTINCT ( COUNT ( ?n ) AS ?m ) ?l WHERE { { ?l property:located_on_street ?n . ?l rdf:type ontology:work_of_art . ?n rdf:type ontology:road } UNION { ?l rdf:type ontology:work_of_art . ?n rdf:type ontology:architectural_structure . ?l property:located_on_street ?n } } GROUP BY ?l } . { SELECT DISTINCT ( MIN ( ?i ) AS ?z ) { SELECT DISTINCT ( COUNT ( ?o ) AS ?i ) ?p WHERE { VALUES ( ?v ) { ( ontology:architectural_structure ) ( ontology:road ) } . ?o rdf:type ?v } GROUP BY ?p } } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q1424426 Q3076179
P19 P17
Q15617994
USER
Which administrative territories do fontaine de l'Avril belong to or were Thaddäus Rabusky born in ?
OR((Q3076179,P17,c(Q15617994)), (Q1424426,P19,c(Q15617994)))
action filter_type
action union
action find
entity Q3076179
relation P17
action find
entity Q1424426
relation P19
type Q15617994
{'OR': [['Q3076179', 'P17', {'concept': 'Q15617994'}], ['Q1424426', 'P19', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Q3076179 property:P17 ?m } UNION { resource:Q1424426 property:P19 ?m } } . ?m rdf:type ontology:Q15617994 }
Thaddäus Rabusky fontaine de l'Avril
action filter_type
action union
action find
entity fontaine de l'Avril
relation country
action find
entity Thaddäus Rabusky
relation place of birth
type designation for an administrative territorial entity
{'OR': [["fontaine de l'Avril", 'country', {'concept': 'designation for an administrative territorial entity'}], ['Thaddäus Rabusky', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?m WHERE { { { resource:fontaine_de_l'Avril property:country ?m } UNION { resource:Thaddäus_Rabusky property:place_of_birth ?m } } . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142 Q262594
SYSTEM
France, Neustadt an der Waldnaab
Q142 Q262594
OR((Q3076179,P17,c(Q15617994)), (Q1424426,P19,c(Q15617994)))
action filter_type
action union
action find
entity Q3076179
relation P17
action find
entity Q1424426
relation P19
type Q15617994
Fontaine de l'Avril belong to [ANSWERS]
{'OR': [['Q3076179', 'P17', {'concept': 'Q15617994'}], ['Q1424426', 'P19', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Q3076179 property:P17 ?m } UNION { resource:Q1424426 property:P19 ?m } } . ?m rdf:type ontology:Q15617994 }
France Neustadt an der Waldnaab
Fontaine de l'Avril belong to France and Neustadt an der Waldnaab
France Neustadt an der Waldnaab
action filter_type
action union
action find
entity fontaine de l'Avril
relation country
action find
entity Thaddäus Rabusky
relation place of birth
type designation for an administrative territorial entity
{'OR': [["fontaine de l'Avril", 'country', {'concept': 'designation for an administrative territorial entity'}], ['Thaddäus Rabusky', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?m WHERE { { { resource:fontaine_de_l'Avril property:country ?m } UNION { resource:Thaddäus_Rabusky property:place_of_birth ?m } } . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P144
Q838948 Q11424 Q15850590
USER
Which works of art are around 3 films and theatrical genres a fork of ?
(c(Q11424)|c(Q15850590),P144,c(Q838948))
action approx
action union
action find_reverse_tuple_counts
relation P144
type Q838948
type Q11424
action find_reverse_tuple_counts
relation P144
type Q838948
type Q15850590
value 3
[[{'concept': 'Q11424'}, {'concept': 'Q15850590'}], 'P144', {'concept': 'Q838948'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?b ) ?q WHERE { { ?d property:P144 ?q . ?q rdf:type ontology:Q838948 . ?d rdf:type ontology:Q11424 } UNION { ?d property:P144 ?q . ?q rdf:type ontology:Q838948 . ?d rdf:type ontology:Q15850590 } } GROUP BY ?q } . FILTER ( ?b = 3 ) }
action approx
action union
action find_reverse_tuple_counts
relation based on
type work of art
type film
action find_reverse_tuple_counts
relation based on
type work of art
type theatrical genre
value 3
[[{'concept': 'film'}, {'concept': 'theatrical genre'}], 'based on', {'concept': 'work of art'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?b ) ?q WHERE { { ?d property:based_on ?q . ?q rdf:type ontology:work_of_art . ?d rdf:type ontology:film } UNION { ?d property:based_on ?q . ?q rdf:type ontology:work_of_art . ?d rdf:type ontology:theatrical_genre } } GROUP BY ?q } . FILTER ( ?b = 3 ) }
[]
work of art film theatrical genre
Q130283 Q83186 Q29478
SYSTEM
Macbeth, Romeo and Juliet, Faust
Q130283 Q83186 Q29478 Q221211
(c(Q11424)|c(Q15850590),P144,c(Q838948))
action approx
action union
action find_reverse_tuple_counts
relation P144
type Q838948
type Q11424
action find_reverse_tuple_counts
relation P144
type Q838948
type Q15850590
value 3
[ANSWERS] are around 3 films and theatrical genres a fork of
[[{'concept': 'Q11424'}, {'concept': 'Q15850590'}], 'P144', {'concept': 'Q838948'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?b ) ?q WHERE { { ?d property:P144 ?q . ?q rdf:type ontology:Q838948 . ?d rdf:type ontology:Q11424 } UNION { ?d property:P144 ?q . ?q rdf:type ontology:Q838948 . ?d rdf:type ontology:Q15850590 } } GROUP BY ?q } . FILTER ( ?b = 3 ) }
Macbeth Romeo and Juliet Faust Twelfth Night
Macbeth, Romeo and Juliet and Faust are around 3 films and theatrical genres a fork of
Macbeth Romeo and Juliet Faust
action approx
action union
action find_reverse_tuple_counts
relation based on
type work of art
type film
action find_reverse_tuple_counts
relation based on
type work of art
type theatrical genre
value 3
[[{'concept': 'film'}, {'concept': 'theatrical genre'}], 'based on', {'concept': 'work of art'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?b ) ?q WHERE { { ?d property:based_on ?q . ?q rdf:type ontology:work_of_art . ?d rdf:type ontology:film } UNION { ?d property:based_on ?q . ?q rdf:type ontology:work_of_art . ?d rdf:type ontology:theatrical_genre } } GROUP BY ?q } . FILTER ( ?b = 3 ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q13534333 Q1424426
P27
Q1048835
USER
Which political territories are Thaddäus Rabusky or Margrethe Vullum an inhabitant of ?
OR((Q1424426,P27,c(Q1048835)), (Q13534333,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q1424426
relation P27
action find
entity Q13534333
relation P27
type Q1048835
{'OR': [['Q1424426', 'P27', {'concept': 'Q1048835'}], ['Q13534333', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Q13534333 property:P27 ?g } UNION { resource:Q1424426 property:P27 ?g } } . ?g rdf:type ontology:Q1048835 }
Margrethe Vullum Thaddäus Rabusky
action filter_type
action union
action find
entity Thaddäus Rabusky
relation country of citizenship
action find
entity Margrethe Vullum
relation country of citizenship
type political territorial entity
{'OR': [['Thaddäus Rabusky', 'country of citizenship', {'concept': 'political territorial entity'}], ['Margrethe Vullum', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Margrethe_Vullum property:country_of_citizenship ?g } UNION { resource:Thaddäus_Rabusky property:country_of_citizenship ?g } } . ?g rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183 Q35
SYSTEM
Germany, Denmark
Q183 Q35
OR((Q1424426,P27,c(Q1048835)), (Q13534333,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q1424426
relation P27
action find
entity Q13534333
relation P27
type Q1048835
[ANSWERS] are Thaddäus Rabusky or Margrethe Vullum an inhabitant of
{'OR': [['Q1424426', 'P27', {'concept': 'Q1048835'}], ['Q13534333', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Q13534333 property:P27 ?g } UNION { resource:Q1424426 property:P27 ?g } } . ?g rdf:type ontology:Q1048835 }
Germany Denmark
Germany and Denmark are Thaddäus Rabusky or Margrethe Vullum an inhabitant of
Germany Denmark
action filter_type
action union
action find
entity Thaddäus Rabusky
relation country of citizenship
action find
entity Margrethe Vullum
relation country of citizenship
type political territorial entity
{'OR': [['Thaddäus Rabusky', 'country of citizenship', {'concept': 'political territorial entity'}], ['Margrethe Vullum', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Margrethe_Vullum property:country_of_citizenship ?g } UNION { resource:Thaddäus_Rabusky property:country_of_citizenship ?g } } . ?g rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P706
Q355304 Q271669 Q355304
USER
How many watercourses are located in around 1 watercourses or landforms ?
(c(Q355304),P706,c(Q355304)|c(Q271669))
action count
action approx
action union
action find_tuple_counts
relation P706
type Q355304
type Q355304
action find_tuple_counts
relation P706
type Q355304
type Q271669
value 1
[{'concept': 'Q355304'}, 'P706', [{'concept': 'Q355304'}, {'concept': 'Q271669'}]]
SELECT DISTINCT ( COUNT ( ?f ) AS ?x ) WHERE { FILTER ( ?b = 1 ) . { SELECT DISTINCT ( COUNT ( ?d ) AS ?b ) ?f WHERE { { ?f property:P706 ?d . ?f rdf:type ontology:Q355304 . ?d rdf:type ontology:Q355304 } UNION { ?f property:P706 ?d . ?d rdf:type ontology:Q271669 . ?f rdf:type ontology:Q355304 } } GROUP BY ?f } }
action count
action approx
action union
action find_tuple_counts
relation located on terrain feature
type watercourse
type watercourse
action find_tuple_counts
relation located on terrain feature
type watercourse
type landform
value 1
[{'concept': 'watercourse'}, 'located on terrain feature', [{'concept': 'watercourse'}, {'concept': 'landform'}]]
SELECT DISTINCT ( COUNT ( ?f ) AS ?x ) WHERE { FILTER ( ?b = 1 ) . { SELECT DISTINCT ( COUNT ( ?d ) AS ?b ) ?f WHERE { { ?f property:located_on_terrain_feature ?d . ?f rdf:type ontology:watercourse . ?d rdf:type ontology:watercourse } UNION { ?f property:located_on_terrain_feature ?d . ?d rdf:type ontology:landform . ?f rdf:type ontology:watercourse } } GROUP BY ?f } }
[]
watercourse landform watercourse
SYSTEM
87
Q3555227 Q23975436 Q119152 Q3433912 Q25930324 Q1871901 Q3558323 Q23927400 Q14299 Q17074877 Q7294256 Q3791516 Q3433893 Q1462727 Q6436394 Q1233866 Q1946396 Q1641987 Q182873 Q25938187 Q19516159 Q2940848 Q19516569 Q19520578 Q4794746 Q7198428 Q17432910 Q17442985 Q7069027 Q25930251 Q3558316 Q2967741 Q3566505 Q3555039 Q19461682 Q3100663 Q6986298 Q1697063 Q1195715 Q211852 Q7448488 Q15675 Q3362574 Q18751502 Q3566497 Q2227821 Q6401833 Q3566426 Q572158 Q18213985 Q1872337 Q37847 Q3566513 Q15224141 Q2998706 Q7578862 Q25930115 Q16511 Q17476676 Q917851 Q647970 Q16505 Q7337795 Q16961146 Q5166723 Q6673218 Q7405928 Q3566399 Q6863767 Q23974254 Q3566520 Q3566529 Q19921410 Q19371036 Q11999457 Q1752963 Q19371038 Q23975438 Q4905993 Q23975437 Q19520581 Q3433883 Q4696259 Q7398706 Q7031677 Q4950822 Q3555219
(c(Q355304),P706,c(Q355304)|c(Q271669))
action count
action approx
action union
action find_tuple_counts
relation P706
type Q355304
type Q355304
action find_tuple_counts
relation P706
type Q355304
type Q271669
value 1
[ANSWER]
[{'concept': 'Q355304'}, 'P706', [{'concept': 'Q355304'}, {'concept': 'Q271669'}]]
SELECT DISTINCT ( COUNT ( ?f ) AS ?x ) WHERE { FILTER ( ?b = 1 ) . { SELECT DISTINCT ( COUNT ( ?d ) AS ?b ) ?f WHERE { { ?f property:P706 ?d . ?f rdf:type ontology:Q355304 . ?d rdf:type ontology:Q355304 } UNION { ?f property:P706 ?d . ?d rdf:type ontology:Q271669 . ?f rdf:type ontology:Q355304 } } GROUP BY ?f } }
Erymanthos Lau Creek Eurotas Rivière du Château Rhaeadr y Cwm Vouraikos Glafkos Louisekilden Douro Kokish River Rapides du Cheval Blanc Iardanus Rivière des Galets Ladon Krathis Pineios Montmorency Falls Neda Corinth Canal Machno Falls Grøtneselva Riandahy Falls Reinskarelva Ringbolt Rapids Arney River Pissing Mare Falls Nordkjoselva Imofossen Numa Falls Rhaeadr Mawddach Charadros Rideau Falls Selemnos Aroanios Soltindelva Pamisos Nedonas Phum Duang River Tapi River Ionides Selinountas River Sever Larissos Botnelva Meilichos Saut du Doubs Khlong Kui Zacholitikos Pistyll Rhaeadr Arve Loussios Mynach Falls Volinaios Hinatuan Enchanted River The Bend Spokane Falls Rhaeadr Du Lozoya Nordbyelva Lee Kladeos Rio Guadiela Rye Chase River Conway River Long Sault Salt River Tytheus Mindemoya River Lau Creek Plataneiko Krios Clareen Storelva Sandselva Saint Anthony Falls Storelva Lau Creek Big Manitou Falls Lau Creek Roaring Rapids Rivière de l'Est Ahnapee River Saffold Dam Niemica Bowen River Peiros
87
action count
action approx
action union
action find_tuple_counts
relation located on terrain feature
type watercourse
type watercourse
action find_tuple_counts
relation located on terrain feature
type watercourse
type landform
value 1
[{'concept': 'watercourse'}, 'located on terrain feature', [{'concept': 'watercourse'}, {'concept': 'landform'}]]
SELECT DISTINCT ( COUNT ( ?f ) AS ?x ) WHERE { FILTER ( ?b = 1 ) . { SELECT DISTINCT ( COUNT ( ?d ) AS ?b ) ?f WHERE { { ?f property:located_on_terrain_feature ?d . ?f rdf:type ontology:watercourse . ?d rdf:type ontology:watercourse } UNION { ?f property:located_on_terrain_feature ?d . ?d rdf:type ontology:landform . ?f rdf:type ontology:watercourse } } GROUP BY ?f } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q668
P85
Q7725634 Q484692 Q15617994
USER
Which administrative territories have less number of literary works and hymns as their national anthem than India ?
(c(Q15617994),P85,c(Q7725634)|c(Q484692))
action less
action union
action find_tuple_counts
relation P85
type Q15617994
type Q7725634
action find_tuple_counts
relation P85
type Q15617994
type Q484692
action count
action filter_multi_types
action find
entity Q668
relation P85
type Q7725634
type Q484692
[{'concept': 'Q15617994'}, 'P85', [{'concept': 'Q7725634'}, {'concept': 'Q484692'}]]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?c ) WHERE { { { ?n rdf:type ontology:Q7725634 } UNION { ?n rdf:type ontology:Q484692 } } . resource:Q668 property:P85 ?n } } . FILTER ( ?g < ?c ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?g ) ?w WHERE { VALUES ( ?f ) { ( ontology:Q7725634 ) ( ontology:Q484692 ) } . ?j rdf:type ?f } GROUP BY ?w } }
India
action less
action union
action find_tuple_counts
relation anthem
type designation for an administrative territorial entity
type literary work
action find_tuple_counts
relation anthem
type designation for an administrative territorial entity
type hymn
action count
action filter_multi_types
action find
entity India
relation anthem
type literary work
type hymn
[{'concept': 'designation for an administrative territorial entity'}, 'anthem', [{'concept': 'literary work'}, {'concept': 'hymn'}]]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?c ) WHERE { { { ?n rdf:type ontology:literary_work } UNION { ?n rdf:type ontology:hymn } } . resource:India property:anthem ?n } } . FILTER ( ?g < ?c ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?g ) ?w WHERE { VALUES ( ?f ) { ( ontology:literary_work ) ( ontology:hymn ) } . ?j rdf:type ?f } GROUP BY ?w } }
[]
literary work hymn designation for an administrative territorial entity
Q142 Q1093 Q773
SYSTEM
France, Limburg, Overijssel
Q701 Q705 Q142 Q1093 Q694 Q773 Q772 Q33788
(c(Q15617994),P85,c(Q7725634)|c(Q484692))
action less
action union
action find_tuple_counts
relation P85
type Q15617994
type Q7725634
action find_tuple_counts
relation P85
type Q15617994
type Q484692
action count
action filter_multi_types
action find
entity Q668
relation P85
type Q7725634
type Q484692
[ANSWERS] have less number of literary works and hymns as their national anthem than India
[{'concept': 'Q15617994'}, 'P85', [{'concept': 'Q7725634'}, {'concept': 'Q484692'}]]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?c ) WHERE { { { ?n rdf:type ontology:Q7725634 } UNION { ?n rdf:type ontology:Q484692 } } . resource:Q668 property:P85 ?n } } . FILTER ( ?g < ?c ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?g ) ?w WHERE { VALUES ( ?f ) { ( ontology:Q7725634 ) ( ontology:Q484692 ) } . ?j rdf:type ?f } GROUP BY ?w } }
North Holland Zeeland France Limburg South Holland Overijssel Drenthe New Caledonia
France, Limburg and Overijssel have less number of literary works and hymns as their national anthem than India
France Limburg Overijssel
action less
action union
action find_tuple_counts
relation anthem
type designation for an administrative territorial entity
type literary work
action find_tuple_counts
relation anthem
type designation for an administrative territorial entity
type hymn
action count
action filter_multi_types
action find
entity India
relation anthem
type literary work
type hymn
[{'concept': 'designation for an administrative territorial entity'}, 'anthem', [{'concept': 'literary work'}, {'concept': 'hymn'}]]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?c ) WHERE { { { ?n rdf:type ontology:literary_work } UNION { ?n rdf:type ontology:hymn } } . resource:India property:anthem ?n } } . FILTER ( ?g < ?c ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?g ) ?w WHERE { VALUES ( ?f ) { ( ontology:literary_work ) ( ontology:hymn ) } . ?j rdf:type ?f } GROUP BY ?w } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q928
P85
Q7725634 Q484692 Q15617994
USER
And what about Philippines?
(c(Q15617994),P85,c(Q7725634)|c(Q484692))
action less
action union
action find_tuple_counts
relation P85
type Q15617994
type Q7725634
action find_tuple_counts
relation P85
type Q15617994
type Q484692
action count
action filter_multi_types
action find
entity Q928
relation P85
type Q7725634
type Q484692
[{'concept': 'Q15617994'}, 'P85', [{'concept': 'Q7725634'}, {'concept': 'Q484692'}]]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?j ) WHERE { resource:Q928 property:P85 ?p . { ?p rdf:type ?x . VALUES ( ?x ) { ( ontology:Q7725634 ) ( ontology:Q484692 ) } } } } . FILTER ( ?l < ?j ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?l ) ?m WHERE { { ?m property:P85 ?q . ?q rdf:type ontology:Q7725634 . ?m rdf:type ontology:Q15617994 } UNION { ?m property:P85 ?q . ?m rdf:type ontology:Q15617994 . ?q rdf:type ontology:Q484692 } } GROUP BY ?m } }
Philippines
action less
action union
action find_tuple_counts
relation anthem
type designation for an administrative territorial entity
type literary work
action find_tuple_counts
relation anthem
type designation for an administrative territorial entity
type hymn
action count
action filter_multi_types
action find
entity Philippines
relation anthem
type literary work
type hymn
[{'concept': 'designation for an administrative territorial entity'}, 'anthem', [{'concept': 'literary work'}, {'concept': 'hymn'}]]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?j ) WHERE { resource:Philippines property:anthem ?p . { ?p rdf:type ?x . VALUES ( ?x ) { ( ontology:literary_work ) ( ontology:hymn ) } } } } . FILTER ( ?l < ?j ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?l ) ?m WHERE { { ?m property:anthem ?q . ?q rdf:type ontology:literary_work . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?m property:anthem ?q . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q rdf:type ontology:hymn } } GROUP BY ?m } }
[]
literary work hymn designation for an administrative territorial entity
Q142 Q1093 Q773
SYSTEM
France, Limburg, Overijssel
Q701 Q705 Q142 Q1093 Q694 Q773 Q772 Q33788
(c(Q15617994),P85,c(Q7725634)|c(Q484692))
action less
action union
action find_tuple_counts
relation P85
type Q15617994
type Q7725634
action find_tuple_counts
relation P85
type Q15617994
type Q484692
action count
action filter_multi_types
action find
entity Q928
relation P85
type Q7725634
type Q484692
[ANSWERS]
[{'concept': 'Q15617994'}, 'P85', [{'concept': 'Q7725634'}, {'concept': 'Q484692'}]]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?j ) WHERE { resource:Q928 property:P85 ?p . { ?p rdf:type ?x . VALUES ( ?x ) { ( ontology:Q7725634 ) ( ontology:Q484692 ) } } } } . FILTER ( ?l < ?j ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?l ) ?m WHERE { { ?m property:P85 ?q . ?q rdf:type ontology:Q7725634 . ?m rdf:type ontology:Q15617994 } UNION { ?m property:P85 ?q . ?m rdf:type ontology:Q15617994 . ?q rdf:type ontology:Q484692 } } GROUP BY ?m } }
North Holland Zeeland France Limburg South Holland Overijssel Drenthe New Caledonia
France Limburg Overijssel
action less
action union
action find_tuple_counts
relation anthem
type designation for an administrative territorial entity
type literary work
action find_tuple_counts
relation anthem
type designation for an administrative territorial entity
type hymn
action count
action filter_multi_types
action find
entity Philippines
relation anthem
type literary work
type hymn
[{'concept': 'designation for an administrative territorial entity'}, 'anthem', [{'concept': 'literary work'}, {'concept': 'hymn'}]]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?j ) WHERE { resource:Philippines property:anthem ?p . { ?p rdf:type ?x . VALUES ( ?x ) { ( ontology:literary_work ) ( ontology:hymn ) } } } } . FILTER ( ?l < ?j ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?l ) ?m WHERE { { ?m property:anthem ?q . ?q rdf:type ontology:literary_work . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?m property:anthem ?q . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q rdf:type ontology:hymn } } GROUP BY ?m } }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P1001
Q12737077 Q17335294
USER
How many occupations or coats of arms have jurisdiction over that administrative territory ?
(c(Q12737077),P1001,Q773) (c(Q17335294),P1001,Q773) (c(Q12737077),P1001,Q142) (c(Q17335294),P1001,Q142) (c(Q12737077),P1001,Q1093) (c(Q17335294),P1001,Q1093) (c(Q12737077),P1001,Q773) (c(Q17335294),P1001,Q773)
[{'concept': 'Q12737077'}, 'P1001', 'Q773'] [{'concept': 'Q17335294'}, 'P1001', 'Q773'] [{'concept': 'Q12737077'}, 'P1001', 'Q142'] [{'concept': 'Q17335294'}, 'P1001', 'Q142'] [{'concept': 'Q12737077'}, 'P1001', 'Q1093'] [{'concept': 'Q17335294'}, 'P1001', 'Q1093'] [{'concept': 'Q12737077'}, 'P1001', 'Q773'] [{'concept': 'Q17335294'}, 'P1001', 'Q773']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P1001 resource:Q773 } UNION { ?y property:P1001 resource:Q773 } UNION { ?z property:P1001 resource:Q16275867 } UNION { ?y property:P1001 resource:Q16275867 } UNION { ?z property:P1001 resource:Q1161 } UNION { ?y property:P1001 resource:Q1161 } UNION { ?z property:P1001 resource:Q773 } UNION { ?y property:P1001 resource:Q773 } } . ?z rdf:type ontology:Q528892 . ?y rdf:type ontology:Q17335294 }
[{'concept': 'occupation'}, 'applies to jurisdiction', 'Overijssel'] [{'concept': 'flag or coat of arms'}, 'applies to jurisdiction', 'Overijssel'] [{'concept': 'occupation'}, 'applies to jurisdiction', 'France'] [{'concept': 'flag or coat of arms'}, 'applies to jurisdiction', 'France'] [{'concept': 'occupation'}, 'applies to jurisdiction', 'Limburg'] [{'concept': 'flag or coat of arms'}, 'applies to jurisdiction', 'Limburg'] [{'concept': 'occupation'}, 'applies to jurisdiction', 'Overijssel'] [{'concept': 'flag or coat of arms'}, 'applies to jurisdiction', 'Overijssel']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:applies_to_jurisdiction resource:Overijssel } UNION { ?y property:applies_to_jurisdiction resource:Overijssel } UNION { ?z property:applies_to_jurisdiction resource:France } UNION { ?y property:applies_to_jurisdiction resource:France } UNION { ?z property:applies_to_jurisdiction resource:Limburg } UNION { ?y property:applies_to_jurisdiction resource:Limburg } UNION { ?z property:applies_to_jurisdiction resource:Overijssel } UNION { ?y property:applies_to_jurisdiction resource:Overijssel } } . ?z rdf:type ontology:occupation . ?y rdf:type ontology:flag_or_coat_of_arms }
[]
occupation flag or coat of arms
Quantitative|Count|Mult. entity type|Clarification
Q142
SYSTEM
Did you mean France ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P1001 resource:Q773 } UNION { ?y property:P1001 resource:Q773 } UNION { ?z property:P1001 resource:Q16275867 } UNION { ?y property:P1001 resource:Q16275867 } UNION { ?z property:P1001 resource:Q1161 } UNION { ?y property:P1001 resource:Q1161 } UNION { ?z property:P1001 resource:Q773 } UNION { ?y property:P1001 resource:Q773 } } . ?z rdf:type ontology:Q528892 . ?y rdf:type ontology:Q17335294 }
Did you mean France ?
France
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:applies_to_jurisdiction resource:Overijssel } UNION { ?y property:applies_to_jurisdiction resource:Overijssel } UNION { ?z property:applies_to_jurisdiction resource:France } UNION { ?y property:applies_to_jurisdiction resource:France } UNION { ?z property:applies_to_jurisdiction resource:Limburg } UNION { ?y property:applies_to_jurisdiction resource:Limburg } UNION { ?z property:applies_to_jurisdiction resource:Overijssel } UNION { ?y property:applies_to_jurisdiction resource:Overijssel } } . ?z rdf:type ontology:occupation . ?y rdf:type ontology:flag_or_coat_of_arms }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Overijssel. Could you tell me the answer for that?
(c(Q12737077),P1001,Q773) (c(Q17335294),P1001,Q773) (c(Q12737077),P1001,Q142) (c(Q17335294),P1001,Q142) (c(Q12737077),P1001,Q1093) (c(Q17335294),P1001,Q1093) (c(Q12737077),P1001,Q773) (c(Q17335294),P1001,Q773)
Q773
[{'concept': 'Q12737077'}, 'P1001', 'Q773'] [{'concept': 'Q17335294'}, 'P1001', 'Q773'] [{'concept': 'Q12737077'}, 'P1001', 'Q142'] [{'concept': 'Q17335294'}, 'P1001', 'Q142'] [{'concept': 'Q12737077'}, 'P1001', 'Q1093'] [{'concept': 'Q17335294'}, 'P1001', 'Q1093'] [{'concept': 'Q12737077'}, 'P1001', 'Q773'] [{'concept': 'Q17335294'}, 'P1001', 'Q773']
[{'concept': 'occupation'}, 'applies to jurisdiction', 'Overijssel'] [{'concept': 'flag or coat of arms'}, 'applies to jurisdiction', 'Overijssel'] [{'concept': 'occupation'}, 'applies to jurisdiction', 'France'] [{'concept': 'flag or coat of arms'}, 'applies to jurisdiction', 'France'] [{'concept': 'occupation'}, 'applies to jurisdiction', 'Limburg'] [{'concept': 'flag or coat of arms'}, 'applies to jurisdiction', 'Limburg'] [{'concept': 'occupation'}, 'applies to jurisdiction', 'Overijssel'] [{'concept': 'flag or coat of arms'}, 'applies to jurisdiction', 'Overijssel']
[]
SYSTEM
2
Q2330297 Q27210682
(c(Q12737077),P1001,Q773) (c(Q17335294),P1001,Q773) (c(Q12737077),P1001,Q142) (c(Q17335294),P1001,Q142) (c(Q12737077),P1001,Q1093) (c(Q17335294),P1001,Q1093) (c(Q12737077),P1001,Q773) (c(Q17335294),P1001,Q773)
[ANSWER]
[{'concept': 'Q12737077'}, 'P1001', 'Q773'] [{'concept': 'Q17335294'}, 'P1001', 'Q773'] [{'concept': 'Q12737077'}, 'P1001', 'Q142'] [{'concept': 'Q17335294'}, 'P1001', 'Q142'] [{'concept': 'Q12737077'}, 'P1001', 'Q1093'] [{'concept': 'Q17335294'}, 'P1001', 'Q1093'] [{'concept': 'Q12737077'}, 'P1001', 'Q773'] [{'concept': 'Q17335294'}, 'P1001', 'Q773']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P1001 resource:Q773 } UNION { ?y property:P1001 resource:Q773 } UNION { ?z property:P1001 resource:Q16275867 } UNION { ?y property:P1001 resource:Q16275867 } UNION { ?z property:P1001 resource:Q1161 } UNION { ?y property:P1001 resource:Q1161 } UNION { ?z property:P1001 resource:Q773 } UNION { ?y property:P1001 resource:Q773 } } . ?z rdf:type ontology:Q528892 . ?y rdf:type ontology:Q17335294 }
flag of Overijssel member of the States-Provincial of Overijssel
2
[{'concept': 'occupation'}, 'applies to jurisdiction', 'Overijssel'] [{'concept': 'flag or coat of arms'}, 'applies to jurisdiction', 'Overijssel'] [{'concept': 'occupation'}, 'applies to jurisdiction', 'France'] [{'concept': 'flag or coat of arms'}, 'applies to jurisdiction', 'France'] [{'concept': 'occupation'}, 'applies to jurisdiction', 'Limburg'] [{'concept': 'flag or coat of arms'}, 'applies to jurisdiction', 'Limburg'] [{'concept': 'occupation'}, 'applies to jurisdiction', 'Overijssel'] [{'concept': 'flag or coat of arms'}, 'applies to jurisdiction', 'Overijssel']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:applies_to_jurisdiction resource:Overijssel } UNION { ?y property:applies_to_jurisdiction resource:Overijssel } UNION { ?z property:applies_to_jurisdiction resource:France } UNION { ?y property:applies_to_jurisdiction resource:France } UNION { ?z property:applies_to_jurisdiction resource:Limburg } UNION { ?y property:applies_to_jurisdiction resource:Limburg } UNION { ?z property:applies_to_jurisdiction resource:Overijssel } UNION { ?y property:applies_to_jurisdiction resource:Overijssel } } . ?z rdf:type ontology:occupation . ?y rdf:type ontology:flag_or_coat_of_arms }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q3610528 Q142
P530 P27
Q15617994
USER
Which administrative territories holds diplomatic relationship with France and do Nicoll Halsey belong to ?
AND((Q142,P530,c(Q15617994)), (Q3610528,P27,c(Q15617994)))
action filter_type
action intersection
action find
entity Q142
relation P530
action find
entity Q3610528
relation P27
type Q15617994
{'AND': [['Q142', 'P530', {'concept': 'Q15617994'}], ['Q3610528', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?l WHERE { resource:Q142 property:P530 ?l . resource:Q3610528 property:P27 ?l . ?l rdf:type ontology:Q15617994 }
Nicoll Halsey France
action filter_type
action intersection
action find
entity France
relation diplomatic relation
action find
entity Nicoll Halsey
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['France', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Nicoll Halsey', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?l WHERE { resource:France property:diplomatic_relation ?l . resource:Nicoll_Halsey property:country_of_citizenship ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
AND((Q142,P530,c(Q15617994)), (Q3610528,P27,c(Q15617994)))
action filter_type
action intersection
action find
entity Q142
relation P530
action find
entity Q3610528
relation P27
type Q15617994
[ANSWER] holds diplomatic relationship with France and do Nicoll Halsey belong to
{'AND': [['Q142', 'P530', {'concept': 'Q15617994'}], ['Q3610528', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?l WHERE { resource:Q142 property:P530 ?l . resource:Q3610528 property:P27 ?l . ?l rdf:type ontology:Q15617994 }
United States of America
United States of America holds diplomatic relationship with France and do Nicoll Halsey belong to
United States of America
action filter_type
action intersection
action find
entity France
relation diplomatic relation
action find
entity Nicoll Halsey
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['France', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Nicoll Halsey', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?l WHERE { resource:France property:diplomatic_relation ?l . resource:Nicoll_Halsey property:country_of_citizenship ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3610528
P102
Q7210356
USER
Which party is that person affiliated with ?
(Q30,P102,c(Q7210356))
action filter_type
action find
entity Q3610528
relation P102
type Q7210356
['Q30', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q7210356 . resource:Q3610528 property:P102 ?c }
Nicoll Halsey
action filter_type
action find
entity Nicoll Halsey
relation member of political party
type political organization
['United States of America', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:political_organization . resource:Nicoll_Halsey property:member_of_political_party ?c }
[]
political organization
Q29552
SYSTEM
Democratic Party
Q29552
(Q30,P102,c(Q7210356))
action filter_type
action find
entity Q3610528
relation P102
type Q7210356
That person is affiliated with [ANSWER]
['Q30', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q7210356 . resource:Q3610528 property:P102 ?c }
Democratic Party
That person is affiliated with Democratic Party
Democratic Party
action filter_type
action find
entity Nicoll Halsey
relation member of political party
type political organization
['United States of America', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:political_organization . resource:Nicoll_Halsey property:member_of_political_party ?c }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q29552 Q28541 Q10280
P17
Q15617994
USER
Is that political organization located in Deensen and San Sebastiano da Po ?
(Q29552,P17,Q28541) (Q29552,P17,Q10280)
action is_in
entity Q29552
action intersection
action find_reverse
entity Q28541
relation P17
action find_reverse
entity Q10280
relation P17
['Q29552', 'P17', 'Q28541'] ['Q29552', 'P17', 'Q10280']
ASK WHERE { resource:Q29552 property:P17 resource:Q28541 . resource:Q29552 property:P17 resource:Q10280 }
Democratic Party Deensen San Sebastiano da Po
action is_in
entity Democratic Party
action intersection
action find_reverse
entity Deensen
relation country
action find_reverse
entity San Sebastiano da Po
relation country
['Democratic Party', 'country', 'Deensen'] ['Democratic Party', 'country', 'San Sebastiano da Po']
ASK WHERE { resource:Democratic_Party property:country resource:Deensen . resource:Democratic_Party property:country resource:San_Sebastiano_da_Po }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q29552,P17,Q28541) (Q29552,P17,Q10280)
action is_in
entity Q29552
action intersection
action find_reverse
entity Q28541
relation P17
action find_reverse
entity Q10280
relation P17
[ANSWER]
['Q29552', 'P17', 'Q28541'] ['Q29552', 'P17', 'Q10280']
ASK WHERE { resource:Q29552 property:P17 resource:Q28541 . resource:Q29552 property:P17 resource:Q10280 }
No
action is_in
entity Democratic Party
action intersection
action find_reverse
entity Deensen
relation country
action find_reverse
entity San Sebastiano da Po
relation country
['Democratic Party', 'country', 'Deensen'] ['Democratic Party', 'country', 'San Sebastiano da Po']
ASK WHERE { resource:Democratic_Party property:country resource:Deensen . resource:Democratic_Party property:country resource:San_Sebastiano_da_Po }
[]