Simple Question (Direct)
Simple Question
Q11468961
P21
Q290
USER
What is the sex of Shirō Yamamoto ?
(Q11468961,P21,c(Q290))
action filter_type
action find
entity Q11468961
relation P21
type Q290
['Q11468961', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?n WHERE { resource:Q11468961 property:P21 ?n . ?n rdf:type ontology:Q290 }
Shirō Yamamoto
action filter_type
action find
entity Shirō Yamamoto
relation gender
type sex
['Shirō Yamamoto', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?n WHERE { resource:Shirō_Yamamoto property:gender ?n . ?n rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q11468961,P21,c(Q290))
action filter_type
action find
entity Q11468961
relation P21
type Q290
The sex of Shirō Yamamoto is a [ANSWER]
['Q11468961', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?n WHERE { resource:Q11468961 property:P21 ?n . ?n rdf:type ontology:Q290 }
male
The sex of Shirō Yamamoto is a male
male
action filter_type
action find
entity Shirō Yamamoto
relation gender
type sex
['Shirō Yamamoto', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?n WHERE { resource:Shirō_Yamamoto property:gender ?n . ?n rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q11468961
P734
Q82799
USER
Who has the surname Shirō Yamamoto ?
(Q11468961,P734,c(Q82799))
action filter_type
action find
entity Q11468961
relation P734
type Q82799
['Q11468961', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q82799 . resource:Q11468961 property:P734 ?g }
Shirō Yamamoto
action filter_type
action find
entity Shirō Yamamoto
relation family name
type name
['Shirō Yamamoto', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:name . resource:Shirō_Yamamoto property:family_name ?g }
[]
name
Q231555
SYSTEM
Yamamoto
Q231555
(Q11468961,P734,c(Q82799))
action filter_type
action find
entity Q11468961
relation P734
type Q82799
[ANSWER] has the surname Shirō [ANSWER]
['Q11468961', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q82799 . resource:Q11468961 property:P734 ?g }
Yamamoto
Yamamoto has the surname Shirō Yamamoto
Yamamoto
action filter_type
action find
entity Shirō Yamamoto
relation family name
type name
['Shirō Yamamoto', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:name . resource:Shirō_Yamamoto property:family_name ?g }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q7615057
Q82799
USER
And how about Steven Miller?
(Q7615057,P734,c(Q82799))
action filter_type
action find
entity Q7615057
relation P734
type Q82799
['Q7615057', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q82799 . resource:Q7615057 property:P734 ?v }
Steven Miller
action filter_type
action find
entity Steven Miller
relation family name
type name
['Steven Miller', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:name . resource:Steven_Miller property:family_name ?v }
[]
name
Q1605060
SYSTEM
Miller
Q1605060
(Q7615057,P734,c(Q82799))
action filter_type
action find
entity Q7615057
relation P734
type Q82799
[ANSWER]
['Q7615057', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q82799 . resource:Q7615057 property:P734 ?v }
Miller
Miller
action filter_type
action find
entity Steven Miller
relation family name
type name
['Steven Miller', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:name . resource:Steven_Miller property:family_name ?v }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1605060
P1533
Q82799
USER
Which name is identical to that one ?
(c(Q82799),P1533,Q1605060)
action filter_type
action find_reverse
entity Q1605060
relation P1533
type Q82799
[{'concept': 'Q82799'}, 'P1533', 'Q1605060']
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q82799 . ?j property:P1533 resource:Q1605060 }
Miller
action filter_type
action find_reverse
entity Miller
relation family name identical to this first name
type name
[{'concept': 'name'}, 'family name identical to this first name', 'Miller']
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:name . ?j property:family_name_identical_to_this_first_name resource:Miller }
[]
name
Q19813043
SYSTEM
Miller
Q19813043
(c(Q82799),P1533,Q1605060)
action filter_type
action find_reverse
entity Q1605060
relation P1533
type Q82799
And [ANSWER] is identical to that one
[{'concept': 'Q82799'}, 'P1533', 'Q1605060']
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q82799 . ?j property:P1533 resource:Q1605060 }
Miller
And Miller is identical to that one
Miller
action filter_type
action find_reverse
entity Miller
relation family name identical to this first name
type name
[{'concept': 'name'}, 'family name identical to this first name', 'Miller']
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:name . ?j property:family_name_identical_to_this_first_name resource:Miller }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P180
Q82799 Q18783400 Q11060274
USER
Which names are expressed in max number of genres of sculpture and prints ?
(c(Q18783400)|c(Q11060274),P180,c(Q82799))
action argmax
action union
action find_reverse_tuple_counts
relation P180
type Q82799
type Q18783400
action find_reverse_tuple_counts
relation P180
type Q82799
type Q11060274
[[{'concept': 'Q18783400'}, {'concept': 'Q11060274'}], 'P180', {'concept': 'Q82799'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?p ) ?l WHERE { ?g rdf:type ?r . VALUES ( ?r ) { ( ontology:Q18783400 ) ( ontology:Q11060274 ) } } GROUP BY ?l } . FILTER ( ?p = ?f ) . { SELECT DISTINCT ( MAX ( ?i ) AS ?f ) { SELECT DISTINCT ( COUNT ( ?k ) AS ?i ) ?t WHERE { { ?k property:P180 ?t . ?t rdf:type ontology:Q82799 . ?k rdf:type ontology:Q18783400 } UNION { ?k property:P180 ?t . ?t rdf:type ontology:Q82799 . ?k rdf:type ontology:Q11060274 } } GROUP BY ?t } } }
action argmax
action union
action find_reverse_tuple_counts
relation depicts
type name
type genre of sculpture
action find_reverse_tuple_counts
relation depicts
type name
type print
[[{'concept': 'genre of sculpture'}, {'concept': 'print'}], 'depicts', {'concept': 'name'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?p ) ?l WHERE { ?g rdf:type ?r . VALUES ( ?r ) { ( ontology:genre_of_sculpture ) ( ontology:print ) } } GROUP BY ?l } . FILTER ( ?p = ?f ) . { SELECT DISTINCT ( MAX ( ?i ) AS ?f ) { SELECT DISTINCT ( COUNT ( ?k ) AS ?i ) ?t WHERE { { ?k property:depicts ?t . ?t rdf:type ontology:name . ?k rdf:type ontology:genre_of_sculpture } UNION { ?k property:depicts ?t . ?t rdf:type ontology:name . ?k rdf:type ontology:print } } GROUP BY ?t } } }
[]
name genre of sculpture print
Q5 Q726
SYSTEM
human, horse
Q5 Q726
(c(Q18783400)|c(Q11060274),P180,c(Q82799))
action argmax
action union
action find_reverse_tuple_counts
relation P180
type Q82799
type Q18783400
action find_reverse_tuple_counts
relation P180
type Q82799
type Q11060274
[ANSWERS] are expressed in max number of genres of sculpture and prints
[[{'concept': 'Q18783400'}, {'concept': 'Q11060274'}], 'P180', {'concept': 'Q82799'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?p ) ?l WHERE { ?g rdf:type ?r . VALUES ( ?r ) { ( ontology:Q18783400 ) ( ontology:Q11060274 ) } } GROUP BY ?l } . FILTER ( ?p = ?f ) . { SELECT DISTINCT ( MAX ( ?i ) AS ?f ) { SELECT DISTINCT ( COUNT ( ?k ) AS ?i ) ?t WHERE { { ?k property:P180 ?t . ?t rdf:type ontology:Q82799 . ?k rdf:type ontology:Q18783400 } UNION { ?k property:P180 ?t . ?t rdf:type ontology:Q82799 . ?k rdf:type ontology:Q11060274 } } GROUP BY ?t } } }
human horse
Human and horse are expressed in max number of genres of sculpture and prints
human horse
action argmax
action union
action find_reverse_tuple_counts
relation depicts
type name
type genre of sculpture
action find_reverse_tuple_counts
relation depicts
type name
type print
[[{'concept': 'genre of sculpture'}, {'concept': 'print'}], 'depicts', {'concept': 'name'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?p ) ?l WHERE { ?g rdf:type ?r . VALUES ( ?r ) { ( ontology:genre_of_sculpture ) ( ontology:print ) } } GROUP BY ?l } . FILTER ( ?p = ?f ) . { SELECT DISTINCT ( MAX ( ?i ) AS ?f ) { SELECT DISTINCT ( COUNT ( ?k ) AS ?i ) ?t WHERE { { ?k property:depicts ?t . ?t rdf:type ontology:name . ?k rdf:type ontology:genre_of_sculpture } UNION { ?k property:depicts ?t . ?t rdf:type ontology:name . ?k rdf:type ontology:print } } GROUP BY ?t } } }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q1619548
P180
Q3305213
USER
Does The Oath of Leo III express those names ?
(Q1619548,P180,Q5) (Q1619548,P180,Q726)
action is_in
entity prev_answer
action find
entity Q1619548
relation P180
['Q1619548', 'P180', 'Q5'] ['Q1619548', 'P180', 'Q726']
ASK WHERE { resource:Q1619548 property:P180 ?u . VALUES ( ?u ) { ( resource:Q5 ) ( resource:Q726 ) } }
The Oath of Leo III
action is_in
entity prev_answer
action find
entity The Oath of Leo III
relation depicts
['The Oath of Leo III', 'depicts', 'human'] ['The Oath of Leo III', 'depicts', 'horse']
ASK WHERE { resource:The_Oath_of_Leo_III property:depicts ?u . VALUES ( ?u ) { ( resource:human ) ( resource:horse ) } }
[]
painting
SYSTEM
NO
(Q1619548,P180,Q5) (Q1619548,P180,Q726)
action is_in
entity prev_answer
action find
entity Q1619548
relation P180
[ANSWER]
['Q1619548', 'P180', 'Q5'] ['Q1619548', 'P180', 'Q726']
ASK WHERE { resource:Q1619548 property:P180 ?u . VALUES ( ?u ) { ( resource:Q5 ) ( resource:Q726 ) } }
No
action is_in
entity prev_answer
action find
entity The Oath of Leo III
relation depicts
['The Oath of Leo III', 'depicts', 'human'] ['The Oath of Leo III', 'depicts', 'horse']
ASK WHERE { resource:The_Oath_of_Leo_III property:depicts ?u . VALUES ( ?u ) { ( resource:human ) ( resource:horse ) } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q5963083 Q11468961
P27
Q15617994
USER
Which administrative territories do Shirō Yamamoto or Kavoos Hasanli belong to ?
OR((Q11468961,P27,c(Q15617994)), (Q5963083,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q11468961
relation P27
action find
entity Q5963083
relation P27
type Q15617994
{'OR': [['Q11468961', 'P27', {'concept': 'Q15617994'}], ['Q5963083', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q15617994 . { VALUES ( ?b ) { ( resource:Q11468961 ) ( resource:Q5963083 ) } . ?b property:P27 ?p } }
Kavoos Hasanli Shirō Yamamoto
action filter_type
action union
action find
entity Shirō Yamamoto
relation country of citizenship
action find
entity Kavoos Hasanli
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Shirō Yamamoto', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Kavoos Hasanli', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . { VALUES ( ?b ) { ( resource:Shirō_Yamamoto ) ( resource:Kavoos_Hasanli ) } . ?b property:country_of_citizenship ?p } }
[]
designation for an administrative territorial entity
Q17 Q794
SYSTEM
Japan, Iran
Q17 Q794
OR((Q11468961,P27,c(Q15617994)), (Q5963083,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q11468961
relation P27
action find
entity Q5963083
relation P27
type Q15617994
Shirō Yamamoto or Kavoos Hasanli belong to the [ANSWERS]
{'OR': [['Q11468961', 'P27', {'concept': 'Q15617994'}], ['Q5963083', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q15617994 . { VALUES ( ?b ) { ( resource:Q11468961 ) ( resource:Q5963083 ) } . ?b property:P27 ?p } }
Japan Iran
Shirō Yamamoto or Kavoos Hasanli belong to the Japan and Iran
Japan Iran
action filter_type
action union
action find
entity Shirō Yamamoto
relation country of citizenship
action find
entity Kavoos Hasanli
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Shirō Yamamoto', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Kavoos Hasanli', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . { VALUES ( ?b ) { ( resource:Shirō_Yamamoto ) ( resource:Kavoos_Hasanli ) } . ?b property:country_of_citizenship ?p } }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q17 Q794
P840
Q2342494
USER
Which collectables have their narrative set in Japan and Iran ?
(c(Q2342494),P840,Q17) (c(Q2342494),P840,Q794)
action union
action filter_type
action find_reverse
entity Q17
relation P840
type Q2342494
action filter_type
action find_reverse
entity Q794
relation P840
type Q2342494
[{'concept': 'Q2342494'}, 'P840', 'Q17'] [{'concept': 'Q2342494'}, 'P840', 'Q794']
SELECT DISTINCT ?p WHERE { { ?p property:P840 resource:Q17 . ?p rdf:type ontology:Q2342494 } UNION { ?p property:P840 resource:Q794 . ?p rdf:type ontology:Q2342494 } }
Japan Iran
action union
action filter_type
action find_reverse
entity Japan
relation narrative location
type collectable
action filter_type
action find_reverse
entity Iran
relation narrative location
type collectable
[{'concept': 'collectable'}, 'narrative location', 'Japan'] [{'concept': 'collectable'}, 'narrative location', 'Iran']
SELECT DISTINCT ?p WHERE { { ?p property:narrative_location resource:Japan . ?p rdf:type ontology:collectable } UNION { ?p property:narrative_location resource:Iran . ?p rdf:type ontology:collectable } }
[]
collectable
Q746583 Q7901955 Q3119212
SYSTEM
Histories, Ushiro, My Uncle Napoleon
Q7901955 Q6878389 Q3119212 Q7763336 Q4170646 Q3113136 Q7366163 Q8069036 Q2359195 Q7736005 Q7428461 Q6968393 Q7555643 Q3210568 Q7730236 Q746583 Q3209140
(c(Q2342494),P840,Q17) (c(Q2342494),P840,Q794)
action union
action filter_type
action find_reverse
entity Q17
relation P840
type Q2342494
action filter_type
action find_reverse
entity Q794
relation P840
type Q2342494
[ANSWERS] have their narrative set in Japan and Iran
[{'concept': 'Q2342494'}, 'P840', 'Q17'] [{'concept': 'Q2342494'}, 'P840', 'Q794']
SELECT DISTINCT ?p WHERE { { ?p property:P840 resource:Q17 . ?p rdf:type ontology:Q2342494 } UNION { ?p property:P840 resource:Q794 . ?p rdf:type ontology:Q2342494 } }
Ushiro Missing Soluch My Uncle Napoleon The Septembers of Shiraz Foggy Tabriz Kelidar Rooftops of Tehran Zendegi The House of the Mosque The Gaze of the Gazelle Savushun Natani Solacers A Dangerous Fortune The Diplomat Histories A Fórmula de Deus
Histories, Ushiro and My Uncle Napoleon have their narrative set in Japan and Iran
Histories Ushiro My Uncle Napoleon
action union
action filter_type
action find_reverse
entity Japan
relation narrative location
type collectable
action filter_type
action find_reverse
entity Iran
relation narrative location
type collectable
[{'concept': 'collectable'}, 'narrative location', 'Japan'] [{'concept': 'collectable'}, 'narrative location', 'Iran']
SELECT DISTINCT ?p WHERE { { ?p property:narrative_location resource:Japan . ?p rdf:type ontology:collectable } UNION { ?p property:narrative_location resource:Iran . ?p rdf:type ontology:collectable } }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q746583 Q7901955 Q3119212
P136
Q1792379
USER
What can be considered as category for Histories, Ushiro and My Uncle Napoleon ?
(Q746583,P136,c(Q1792379)) (Q7901955,P136,c(Q1792379)) (Q3119212,P136,c(Q1792379))
action union
action filter_type
action find
entity Q746583
relation P136
type Q1792379
action filter_type
action find
entity Q7901955
relation P136
type Q1792379
action filter_type
action find
entity Q3119212
relation P136
type Q1792379
['Q746583', 'P136', {'concept': 'Q1792379'}] ['Q7901955', 'P136', {'concept': 'Q1792379'}] ['Q3119212', 'P136', {'concept': 'Q1792379'}]
SELECT DISTINCT ?u WHERE { { resource:Q746583 property:P136 ?u . ?u rdf:type ontology:Q1792379 } UNION { resource:Q7901955 property:P136 ?u . ?u rdf:type ontology:Q1792379 } }
Histories Ushiro My Uncle Napoleon
action union
action filter_type
action find
entity Histories
relation genre
type art genre
action filter_type
action find
entity Ushiro
relation genre
type art genre
action filter_type
action find
entity My Uncle Napoleon
relation genre
type art genre
['Histories', 'genre', {'concept': 'art genre'}] ['Ushiro', 'genre', {'concept': 'art genre'}] ['My Uncle Napoleon', 'genre', {'concept': 'art genre'}]
SELECT DISTINCT ?u WHERE { { resource:Histories property:genre ?u . ?u rdf:type ontology:art_genre } UNION { resource:Ushiro property:genre ?u . ?u rdf:type ontology:art_genre } }
[]
art genre
Q1164267 Q8261 Q8261
SYSTEM
novel for 2nd, 3rd, travel book for 1st
Q1164267 Q8261 Q8261
(Q746583,P136,c(Q1792379)) (Q7901955,P136,c(Q1792379)) (Q3119212,P136,c(Q1792379))
action union
action filter_type
action find
entity Q746583
relation P136
type Q1792379
action filter_type
action find
entity Q7901955
relation P136
type Q1792379
action filter_type
action find
entity Q3119212
relation P136
type Q1792379
[ANSWERS]
['Q746583', 'P136', {'concept': 'Q1792379'}] ['Q7901955', 'P136', {'concept': 'Q1792379'}] ['Q3119212', 'P136', {'concept': 'Q1792379'}]
SELECT DISTINCT ?u WHERE { { resource:Q746583 property:P136 ?u . ?u rdf:type ontology:Q1792379 } UNION { resource:Q7901955 property:P136 ?u . ?u rdf:type ontology:Q1792379 } }
travel book novel novel
And travel book, novel and novel can be considered as category for Histories, Ushiro and My Uncle Napoleon
travel book novel novel
action union
action filter_type
action find
entity Histories
relation genre
type art genre
action filter_type
action find
entity Ushiro
relation genre
type art genre
action filter_type
action find
entity My Uncle Napoleon
relation genre
type art genre
['Histories', 'genre', {'concept': 'art genre'}] ['Ushiro', 'genre', {'concept': 'art genre'}] ['My Uncle Napoleon', 'genre', {'concept': 'art genre'}]
SELECT DISTINCT ?u WHERE { { resource:Histories property:genre ?u . ?u rdf:type ontology:art_genre } UNION { resource:Ushiro property:genre ?u . ?u rdf:type ontology:art_genre } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q746583
P629
Q571
USER
Which book is an edition or translation of that collectable ?
(c(Q571),P629,Q746583)
action filter_type
action find_reverse
entity Q746583
relation P629
type Q571
[{'concept': 'Q571'}, 'P629', 'Q746583']
SELECT DISTINCT ?s WHERE { ?s property:P629 resource:Q746583 . ?s rdf:type ontology:Q571 }
Histories
action filter_type
action find_reverse
entity Histories
relation edition or translation of
type book
[{'concept': 'book'}, 'edition or translation of', 'Histories']
SELECT DISTINCT ?s WHERE { ?s property:edition_or_translation_of resource:Histories . ?s rdf:type ontology:book }
[]
book
Clarification for simple ques.
Q746583
SYSTEM
Did you mean Histories ?
Q1164267 Q8261 Q8261
(c(Q571),P629,Q1164267) (c(Q571),P629,Q8261) (c(Q571),P629,Q8261)
[ANSWER]
[{'concept': 'Q571'}, 'P629', 'Q1164267'] [{'concept': 'Q571'}, 'P629', 'Q8261'] [{'concept': 'Q571'}, 'P629', 'Q8261']
SELECT DISTINCT ?s WHERE { ?s property:P629 resource:Q746583 . ?s rdf:type ontology:Q571 }
travel book novel novel
Did you mean Histories ?
Histories
[{'concept': 'book'}, 'edition or translation of', 'travel book'] [{'concept': 'book'}, 'edition or translation of', 'novel'] [{'concept': 'book'}, 'edition or translation of', 'novel']
SELECT DISTINCT ?s WHERE { ?s property:edition_or_translation_of resource:Histories . ?s rdf:type ontology:book }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q571),P629,Q746583)
[{'concept': 'Q571'}, 'P629', 'Q746583']
[{'concept': 'book'}, 'edition or translation of', 'Histories']
[]
Q19039961
SYSTEM
Histories (Godley translation)
Q19039961
(c(Q571),P629,Q746583)
action filter_type
action find_reverse
entity Q746583
relation P629
type Q571
[ANSWER] is an edition or translation of that collectable
[{'concept': 'Q571'}, 'P629', 'Q746583']
SELECT DISTINCT ?s WHERE { ?s property:P629 resource:Q746583 . ?s rdf:type ontology:Q571 }
Histories (Godley translation)
Histories (Godley translation) is an edition or translation of that collectable
Histories (Godley translation)
action filter_type
action find_reverse
entity Histories
relation edition or translation of
type book
[{'concept': 'book'}, 'edition or translation of', 'Histories']
SELECT DISTINCT ?s WHERE { ?s property:edition_or_translation_of resource:Histories . ?s rdf:type ontology:book }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P291
Q56061 Q571
USER
Which administrative territories were atmost 105 books published ?
(c(Q571),P291,c(Q56061))
action atmost
action find_reverse_tuple_counts
relation P291
type Q56061
type Q571
value 105
[{'concept': 'Q571'}, 'P291', {'concept': 'Q56061'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?g ) AS ?v ) WHERE { ?g property:P291 ?l . ?l rdf:type ontology:Q56061 . ?g rdf:type ontology:Q571 } GROUP BY ?l } . FILTER ( ?v <= 105 ) }
action atmost
action find_reverse_tuple_counts
relation place of publication
type administrative territorial entity
type book
value 105
[{'concept': 'book'}, 'place of publication', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?g ) AS ?v ) WHERE { ?g property:place_of_publication ?l . ?l rdf:type ontology:administrative_territorial_entity . ?g rdf:type ontology:book } GROUP BY ?l } . FILTER ( ?v <= 105 ) }
[]
administrative territorial entity book
Q1085 Q72 Q649
SYSTEM
Prague, Zürich, Moscow
Q807 Q909146 Q2536016 Q2512312 Q190583 Q27918 Q736775 Q2035368 Q3897 Q38511 Q3711 Q130191 Q203619 Q393 Q80670 Q25286 Q1544563 Q490595 Q3808 Q501661 Q982367 Q3150 Q484678 Q11974 Q151920 Q13375 Q36378 Q4093 Q2560090 Q10305 Q3404679 Q23337 Q33959 Q987 Q8692 Q23051 Q586 Q2656 Q1289 Q4581188 Q8851 Q10690 Q25748 Q9920 Q15688 Q12155 Q323801 Q15682 Q15684 Q170497 Q1757 Q41876 Q1754 Q1022 Q749 Q99151 Q90 Q39561 Q48329 Q3992 Q2132 Q7880 Q1930 Q949651 Q3846 Q81046 Q597 Q5831 Q22889 Q12892 Q365 Q5836 Q132572 Q6157 Q12411 Q1718 Q43631 Q8818 Q11125 Q8810 Q15283655 Q4713350 Q428829 Q1335 Q1895 Q1034159 Q1155 Q103717 Q28911 Q3400328 Q14323 Q186237 Q14325 Q180233 Q484799 Q14328 Q576110 Q5083 Q1524 Q1489 Q209055 Q2020203 Q3561 Q40347 Q406 Q234178 Q739452 Q8678 Q15468 Q490 Q6346 Q495 Q2044 Q887 Q576165 Q5465 Q2141 Q54217 Q23436 Q1679567 Q2814 Q15093 Q2280 Q162279 Q3141 Q671288 Q72 Q17151 Q1490 Q1191195 Q102217 Q237 Q334 Q239 Q16559 Q16554 Q16555 Q16557 Q486306 Q621 Q8686 Q994 Q1513 Q3130 Q192517 Q1296 Q1297 Q3033 Q936183 Q1563 Q170263 Q35381 Q1748 Q45412 Q87 Q40269 Q2081145 Q1024911 Q193478 Q5112 Q2103 Q1741 Q178093 Q191133 Q11959 Q35493 Q538915 Q78 Q49111 Q71 Q2617448 Q37100 Q38022 Q36405 Q270 Q60 Q286048 Q1235510 Q15678 Q1931927 Q49241 Q3183 Q172157 Q1781 Q33935 Q582121 Q16567 Q1861 Q14318 Q14314 Q5092 Q15090 Q134620 Q956 Q15095 Q15098 Q1492 Q437 Q8745 Q1479 Q13580 Q2766547 Q18419 Q2941325 Q12258 Q202158 Q1017331 Q2090 Q2807 Q49145 Q42735 Q242478 Q327022 Q12225 Q23154 Q220 Q340 Q342 Q10282 Q26421 Q429676 Q672545 Q188304 Q617 Q634054 Q472 Q37995 Q6576 Q6761 Q28249 Q13666 Q761 Q9580 Q569661 Q2634 Q8356 Q3584 Q49179 Q735583 Q1726 Q1724 Q11967 Q1729 Q8717 Q3519 Q64 Q65 Q159232 Q207891 Q2028 Q61 Q62 Q3395358 Q683512 Q18125 Q3889 Q9125 Q5818 Q1867 Q204382 Q12439 Q269 Q27393 Q470445 Q126148 Q1352 Q771986 Q49229 Q33405 Q79990 Q8385 Q493794 Q6537 Q6106 Q2391194 Q10313 Q72259 Q1295 Q19785 Q647 Q641 Q193367 Q727 Q649 Q59169 Q669171 Q204720 Q206988 Q3012 Q24826 Q15699 Q485329 Q15696 Q15695 Q985271 Q28848 Q128306 Q15088 Q3366952 Q997170 Q203263 Q580 Q213898 Q193180 Q585 Q8757 Q34370 Q47048 Q178277 Q192155 Q883 Q207639 Q41262 Q6441 Q125080 Q2066 Q12303 Q100 Q156990 Q3834 Q81137 Q40840 Q955640 Q281839 Q485172 Q26793 Q3426 Q10686 Q211020 Q181854 Q648 Q487786 Q12233 Q172 Q216 Q646620 Q350 Q720627 Q13972 Q215277 Q8826 Q129610 Q179385 Q1348 Q29303 Q628667 Q127159 Q14336 Q34647 Q1085
(c(Q571),P291,c(Q56061))
action atmost
action find_reverse_tuple_counts
relation P291
type Q56061
type Q571
value 105
[ANSWERS] were atmost 105 books published
[{'concept': 'Q571'}, 'P291', {'concept': 'Q56061'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?g ) AS ?v ) WHERE { ?g property:P291 ?l . ?l rdf:type ontology:Q56061 . ?g rdf:type ontology:Q571 } GROUP BY ?l } . FILTER ( ?v <= 105 ) }
Lausanne Godalming Crickhowell Eppegem Mikkeli Bad Rappenau Toronto Tremadog Luanda Turku Belgrade Norwich Kemi Szczecin Mühlacker Uppsala Hellerup Daytona Beach Yaoundé Schleswig Mineola Jena Berkeley Las Palmas de Gran Canaria Tiberias Pisa Fribourg Glasgow Athol Zaragoza Crumlin Salt Lake City Nice New Delhi Bilbao Swansea Bonn Palermo Grenoble Straume Málaga Cardiff Gävle Haarlem Ávila Soria Nampula Cádiz Segovia Gloucester Helsinki Reims Stockholm Stuttgart Groningen Ourense Paris Burbank Mariehamn Liège Victoria Toulouse Ottawa Wilmington Minden Charleroi Lisbon Melilla Bath Antwerp Cologne Toledo Tiraspol Seinäjoki Pontevedra Düsseldorf Leiden Valencia Lugo Granada Elverum Alcones Caernarfon Montevideo Petrozavodsk Harstad Busto Arsizio Rovaniemi Lahti St Athan Mérida Joensuu Logroño Pori Marbella Santa Cruz de Tenerife Nauvoo Seattle Athens Mexico City Torquay Rhyl Algiers Norman Istanbul Bangor Garden City Rio de Janeiro Badalona Milan Indianapolis Turin Florence Yekaterinburg Warsaw Cape Town Halifax Norwalk Edinburgh Jakobstad Halle (Saale) Ciudad Real Minsk Kuopio Melbourne Bend Zürich Thessaloniki Tokyo Mold Vitebsk Vatican City Singapore Brussels Austin Denver Houston Dallas Pensacola Versailles Shanghai Tbilisi Nagpur Sydney Boulder Ghent Chicago Göttingen Tonbridge Havana Chester Colombo Copenhagen Coimbra Alexandria Porto Alegre Milborne Port Welshpool Buda Adelaide Bochum Vienna Poughkeepsie Fátima Alicante Almaty Mjölby Basel Cambridge Geneva Edinburgh Auckland St. Louis Aberdeen Warsaw New York City New Glasgow, Nova Scotia Dolgellau Cáceres Bracon Ash Lexington Perth Winchester Budapest Tel Aviv Bradenton Columbus Bangkok Vitoria-Gasteiz Santiago de Compostela Baltimore Lleida Jyväskylä Beijing Albacete Cuenca Barcelona Ljubljana Vigo Bordeaux Metro Manila 's-Hertogenbosch Brooklyn Corbin Sabadell Hämeenlinna Westport, County Mayo Nuremberg Madrid New Haven Olympia Levoča Rockville Murcia Bristol Rome Montreal Quimper Pamplona Dordrecht Sereď Barmouth Sunderland Padua Conwy Sofia Yangon Irkutsk Livorno Concord Messina Białystok Burgos Königstein im Taunus Naples Valladolid Nový Jičín Worcester Ylivieska Munich Saarbrücken Huesca Erfurt Seville Bari Berlin Los Angeles Santa Cruz Kokkola Verona Washington, D.C. San Francisco Kidwelly Savonlinna Manchester Maputo Winterthur Córdoba Taipei Kouvola Detroit Tashkent Herning Prostějov Tangier Chennai Chepstow Durham Little Rock Christchurch Ostrava Dubuque Vicenza Portland Saint-Idesbald Donostia/San Sebastián Portsmouth Dortmund Harpenden Rennes Venice Porvoo Amsterdam Moscow Mo i Rana Newtown Hereford Cheltenham Ulm Liverpool León Ferrol Zamora Salamanca The Dalles Saint Paul Denton Tarragona Alta Waterville Athens Łódź Preveza Kajaani Oslo A Coruña Rotterdam Oulu Montvale Kotka Novosibirsk Chichester Nottingham Montpellier Vaasa Essen Jerez de la Frontera Boston Monmouth Konstanz Olomouc Tampere Glasgow Englewood Cliffs, New Jersey Ann Arbor Bergen Voronezh Belfast Imatra Lappeenranta Lille Orihuela Santander Toronto Vilnius Estella-Lizarra Cambridge Kanhangad Tartu Jaffna Palma Galway Greenwich Kolkata Canterbury Spangenberg Bletchley Teruel Johannesburg Prague
Prague, Zürich and Moscow were atmost 105 books published
Prague Zürich Moscow
action atmost
action find_reverse_tuple_counts
relation place of publication
type administrative territorial entity
type book
value 105
[{'concept': 'book'}, 'place of publication', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?g ) AS ?v ) WHERE { ?g property:place_of_publication ?l . ?l rdf:type ontology:administrative_territorial_entity . ?g rdf:type ontology:book } GROUP BY ?l } . FILTER ( ?v <= 105 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q649
P30
Q2221906
USER
Which geographic location is Moscow situated in ?
(Q649,P30,c(Q2221906))
action filter_type
action find
entity Q649
relation P30
type Q2221906
['Q649', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?z WHERE { resource:Q649 property:P30 ?z . ?z rdf:type ontology:Q2221906 }
Moscow
action filter_type
action find
entity Moscow
relation continent
type geographic location
['Moscow', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?z WHERE { resource:Moscow property:continent ?z . ?z rdf:type ontology:geographic_location }
[]
geographic location
Q46
SYSTEM
Europe
Q46
(Q649,P30,c(Q2221906))
action filter_type
action find
entity Q649
relation P30
type Q2221906
Moscow is situated in [ANSWER]
['Q649', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?z WHERE { resource:Q649 property:P30 ?z . ?z rdf:type ontology:Q2221906 }
Europe
Moscow is situated in Europe
Europe
action filter_type
action find
entity Moscow
relation continent
type geographic location
['Moscow', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?z WHERE { resource:Moscow property:continent ?z . ?z rdf:type ontology:geographic_location }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q1130134
Q2221906
USER
And how about Paramaribo District?
(Q1130134,P30,c(Q2221906))
action filter_type
action find
entity Q1130134
relation P30
type Q2221906
['Q1130134', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?q WHERE { resource:Q1130134 property:P30 ?q . ?q rdf:type ontology:Q2221906 }
Paramaribo District
action filter_type
action find
entity Paramaribo District
relation continent
type geographic location
['Paramaribo District', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?q WHERE { resource:Paramaribo_District property:continent ?q . ?q rdf:type ontology:geographic_location }
[]
geographic location
Q18
SYSTEM
South America
Q18
(Q1130134,P30,c(Q2221906))
action filter_type
action find
entity Q1130134
relation P30
type Q2221906
[ANSWER]
['Q1130134', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?q WHERE { resource:Q1130134 property:P30 ?q . ?q rdf:type ontology:Q2221906 }
South America
South America
action filter_type
action find
entity Paramaribo District
relation continent
type geographic location
['Paramaribo District', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?q WHERE { resource:Paramaribo_District property:continent ?q . ?q rdf:type ontology:geographic_location }
[]