Simple Question (Direct)
Simple Question
Q731108
P1412
Q34770
USER
Which language does Giovanni Battista Pirelli speak in ?
(Q731108,P1412,c(Q34770))
action filter_type
action find
entity Q731108
relation P1412
type Q34770
['Q731108', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?p WHERE { resource:Q731108 property:P1412 ?p . ?p rdf:type ontology:Q34770 }
Giovanni Battista Pirelli
action filter_type
action find
entity Giovanni Battista Pirelli
relation languages spoken, written or signed
type language
['Giovanni Battista Pirelli', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?p WHERE { resource:Giovanni_Battista_Pirelli property:languages_spoken,_written_or_signed ?p . ?p rdf:type ontology:language }
[]
language
Q652
SYSTEM
Italian
Q652
(Q731108,P1412,c(Q34770))
action filter_type
action find
entity Q731108
relation P1412
type Q34770
Giovanni Battista Pirelli speaks in [ANSWER]
['Q731108', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?p WHERE { resource:Q731108 property:P1412 ?p . ?p rdf:type ontology:Q34770 }
Italian
Giovanni Battista Pirelli speaks in Italian
Italian
action filter_type
action find
entity Giovanni Battista Pirelli
relation languages spoken, written or signed
type language
['Giovanni Battista Pirelli', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?p WHERE { resource:Giovanni_Battista_Pirelli property:languages_spoken,_written_or_signed ?p . ?p rdf:type ontology:language }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q731108
P112
Q43229
USER
Which organization was started by that person ?
(c(Q43229),P112,Q652)
action filter_type
action find_reverse
entity Q731108
relation P112
type Q43229
[{'concept': 'Q43229'}, 'P112', 'Q652']
SELECT DISTINCT ?m WHERE { ?m property:P112 resource:Q731108 . ?m rdf:type ontology:Q43229 }
Giovanni Battista Pirelli
action filter_type
action find_reverse
entity Giovanni Battista Pirelli
relation founder
type organization
[{'concept': 'organization'}, 'founder', 'Italian']
SELECT DISTINCT ?m WHERE { ?m property:founder resource:Giovanni_Battista_Pirelli . ?m rdf:type ontology:organization }
[]
organization
Q207770
SYSTEM
Pirelli
Q207770
(c(Q43229),P112,Q652)
action filter_type
action find_reverse
entity Q731108
relation P112
type Q43229
[ANSWER] was started by that person
[{'concept': 'Q43229'}, 'P112', 'Q652']
SELECT DISTINCT ?m WHERE { ?m property:P112 resource:Q731108 . ?m rdf:type ontology:Q43229 }
Pirelli
Pirelli was started by that person
Pirelli
action filter_type
action find_reverse
entity Giovanni Battista Pirelli
relation founder
type organization
[{'concept': 'organization'}, 'founder', 'Italian']
SELECT DISTINCT ?m WHERE { ?m property:founder resource:Giovanni_Battista_Pirelli . ?m rdf:type ontology:organization }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P282
Q9779 Q8192 Q34770
USER
Which languages utilizes approximately 1 alphabets or writing systems as the writing system ?
(c(Q34770),P282,c(Q9779)|c(Q8192))
action approx
action union
action find_tuple_counts
relation P282
type Q34770
type Q9779
action find_tuple_counts
relation P282
type Q34770
type Q8192
value 1
[{'concept': 'Q34770'}, 'P282', [{'concept': 'Q9779'}, {'concept': 'Q8192'}]]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?b ) ?r WHERE { { ?r property:P282 ?l . ?r rdf:type ontology:Q34770 . ?l rdf:type ontology:Q9779 } UNION { ?r property:P282 ?l . ?r rdf:type ontology:Q34770 . ?l rdf:type ontology:Q8192 } } GROUP BY ?r } . FILTER ( ?b = 1 ) }
action approx
action union
action find_tuple_counts
relation writing system
type language
type alphabet
action find_tuple_counts
relation writing system
type language
type writing system
value 1
[{'concept': 'language'}, 'writing system', [{'concept': 'alphabet'}, {'concept': 'writing system'}]]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?b ) ?r WHERE { { ?r property:writing_system ?l . ?r rdf:type ontology:language . ?l rdf:type ontology:alphabet } UNION { ?r property:writing_system ?l . ?r rdf:type ontology:language . ?l rdf:type ontology:writing_system } } GROUP BY ?r } . FILTER ( ?b = 1 ) }
[]
alphabet writing system language
Q35499 Q1669994 Q33251
SYSTEM
Old Church Slavonic, Minoan language, Church Slavonic
Q13211 Q35499 Q1669994 Q33251 Q21161942 Q1639124 Q36464 Q652
(c(Q34770),P282,c(Q9779)|c(Q8192))
action approx
action union
action find_tuple_counts
relation P282
type Q34770
type Q9779
action find_tuple_counts
relation P282
type Q34770
type Q8192
value 1
[ANSWERS] utilize approximately 1 alphabets or writing systems as the writing system
[{'concept': 'Q34770'}, 'P282', [{'concept': 'Q9779'}, {'concept': 'Q8192'}]]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?b ) ?r WHERE { { ?r property:P282 ?l . ?r rdf:type ontology:Q34770 . ?l rdf:type ontology:Q9779 } UNION { ?r property:P282 ?l . ?r rdf:type ontology:Q34770 . ?l rdf:type ontology:Q8192 } } GROUP BY ?r } . FILTER ( ?b = 1 ) }
Ruthenian Old Church Slavonic Minoan language Church Slavonic Serbian written in Cyrillic Slavoserbian Nivkh language Italian
Old Church Slavonic, Minoan language and Church Slavonic utilize approximately 1 alphabets or writing systems as the writing system
Old Church Slavonic Minoan language Church Slavonic
action approx
action union
action find_tuple_counts
relation writing system
type language
type alphabet
action find_tuple_counts
relation writing system
type language
type writing system
value 1
[{'concept': 'language'}, 'writing system', [{'concept': 'alphabet'}, {'concept': 'writing system'}]]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?b ) ?r WHERE { { ?r property:writing_system ?l . ?r rdf:type ontology:language . ?l rdf:type ontology:alphabet } UNION { ?r property:writing_system ?l . ?r rdf:type ontology:language . ?l rdf:type ontology:writing_system } } GROUP BY ?r } . FILTER ( ?b = 1 ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q35499
P144
Q5962346
USER
Which classification scheme is adapted from that language ?
(c(Q5962346),P144,Q35499)
action filter_type
action find_reverse
entity Q35499
relation P144
type Q5962346
[{'concept': 'Q5962346'}, 'P144', 'Q35499']
SELECT DISTINCT ?w WHERE { ?w property:P144 resource:Q35499 . ?w rdf:type ontology:Q5962346 }
Old Church Slavonic
action filter_type
action find_reverse
entity Old Church Slavonic
relation based on
type classification scheme
[{'concept': 'classification scheme'}, 'based on', 'Old Church Slavonic']
SELECT DISTINCT ?w WHERE { ?w property:based_on resource:Old_Church_Slavonic . ?w rdf:type ontology:classification_scheme }
[]
classification scheme
Clarification for simple ques.
Q35499
SYSTEM
Did you mean Old Church Slavonic ?
Q35499 Q1669994 Q33251
(c(Q5962346),P144,Q35499) (c(Q5962346),P144,Q1669994) (c(Q5962346),P144,Q33251)
[ANSWER]
[{'concept': 'Q5962346'}, 'P144', 'Q35499'] [{'concept': 'Q5962346'}, 'P144', 'Q1669994'] [{'concept': 'Q5962346'}, 'P144', 'Q33251']
SELECT DISTINCT ?w WHERE { ?w property:P144 resource:Q35499 . ?w rdf:type ontology:Q5962346 }
Old Church Slavonic Minoan language Church Slavonic
Did you mean Old Church Slavonic ?
Old Church Slavonic
[{'concept': 'classification scheme'}, 'based on', 'Old Church Slavonic'] [{'concept': 'classification scheme'}, 'based on', 'Minoan language'] [{'concept': 'classification scheme'}, 'based on', 'Church Slavonic']
SELECT DISTINCT ?w WHERE { ?w property:based_on resource:Old_Church_Slavonic . ?w rdf:type ontology:classification_scheme }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q5962346),P144,Q35499)
[{'concept': 'Q5962346'}, 'P144', 'Q35499']
[{'concept': 'classification scheme'}, 'based on', 'Old Church Slavonic']
[]
Q145852
SYSTEM
West Slavic languages
Q145852
(c(Q5962346),P144,Q35499)
action filter_type
action find_reverse
entity Q35499
relation P144
type Q5962346
The [ANSWER] is adapted from that language
[{'concept': 'Q5962346'}, 'P144', 'Q35499']
SELECT DISTINCT ?w WHERE { ?w property:P144 resource:Q35499 . ?w rdf:type ontology:Q5962346 }
West Slavic languages
The West Slavic languages is adapted from that language
West Slavic languages
action filter_type
action find_reverse
entity Old Church Slavonic
relation based on
type classification scheme
[{'concept': 'classification scheme'}, 'based on', 'Old Church Slavonic']
SELECT DISTINCT ?w WHERE { ?w property:based_on resource:Old_Church_Slavonic . ?w rdf:type ontology:classification_scheme }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q145852 Q8259652
P407
Q82799
USER
Is Krupa composed in that classification scheme ?
(Q8259652,P407,Q145852)
action is_in
entity Q145852
action find
entity Q8259652
relation P407
['Q8259652', 'P407', 'Q145852']
ASK WHERE { resource:Q8259652 property:P407 resource:Q145852 }
West Slavic languages Krupa
action is_in
entity West Slavic languages
action find
entity Krupa
relation language of work or name
['Krupa', 'language of work or name', 'West Slavic languages']
ASK WHERE { resource:Krupa property:language_of_work_or_name resource:West_Slavic_languages }
[]
name
SYSTEM
YES
(Q8259652,P407,Q145852)
action is_in
entity Q145852
action find
entity Q8259652
relation P407
[ANSWER]
['Q8259652', 'P407', 'Q145852']
ASK WHERE { resource:Q8259652 property:P407 resource:Q145852 }
Yes
action is_in
entity West Slavic languages
action find
entity Krupa
relation language of work or name
['Krupa', 'language of work or name', 'West Slavic languages']
ASK WHERE { resource:Krupa property:language_of_work_or_name resource:West_Slavic_languages }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q145852
P144
Q34770
USER
Which language is that classification scheme considered a copy of ?
action filter_type
action find
entity Q145852
relation P144
type Q34770
SELECT DISTINCT ?y WHERE { resource:Q145852 property:P144 ?y . ?y rdf:type ontology:Q34770 }
West Slavic languages
action filter_type
action find
entity West Slavic languages
relation based on
type language
SELECT DISTINCT ?y WHERE { resource:West_Slavic_languages property:based_on ?y . ?y rdf:type ontology:language }
[]
language
Q35499
SYSTEM
Old Church Slavonic
Q35499
action filter_type
action find
entity Q145852
relation P144
type Q34770
[ANSWER] is that classification scheme considered a copy of
SELECT DISTINCT ?y WHERE { resource:Q145852 property:P144 ?y . ?y rdf:type ontology:Q34770 }
Old Church Slavonic
Old Church Slavonic is that classification scheme considered a copy of
Old Church Slavonic
action filter_type
action find
entity West Slavic languages
relation based on
type language
SELECT DISTINCT ?y WHERE { resource:West_Slavic_languages property:based_on ?y . ?y rdf:type ontology:language }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Indirect
P282
Q8192 Q34770
USER
How many languages are more number of writing systems the writing system of than that language ?
(c(Q34770),P282,c(Q8192))
action count
action greater
action find_tuple_counts
relation P282
type Q8192
type Q34770
action count
action filter_type
action find
entity Q35499
relation P282
type Q8192
[{'concept': 'Q34770'}, 'P282', {'concept': 'Q8192'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?h ) WHERE { { SELECT DISTINCT ?l ( COUNT ( ?e ) AS ?q ) WHERE { ?l property:P282 ?e . ?l rdf:type ontology:Q8192 . ?e rdf:type ontology:Q34770 } GROUP BY ?l } . FILTER ( ?q > ?x ) . { SELECT DISTINCT ( COUNT ( ?f ) AS ?x ) WHERE { resource:Q35499 property:P282 ?f . ?f rdf:type ontology:Q8192 } } }
action count
action greater
action find_tuple_counts
relation writing system
type writing system
type language
action count
action filter_type
action find
entity Old Church Slavonic
relation writing system
type writing system
[{'concept': 'language'}, 'writing system', {'concept': 'writing system'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?h ) WHERE { { SELECT DISTINCT ?l ( COUNT ( ?e ) AS ?q ) WHERE { ?l property:writing_system ?e . ?l rdf:type ontology:writing_system . ?e rdf:type ontology:language } GROUP BY ?l } . FILTER ( ?q > ?x ) . { SELECT DISTINCT ( COUNT ( ?f ) AS ?x ) WHERE { resource:Old_Church_Slavonic property:writing_system ?f . ?f rdf:type ontology:writing_system } } }
[]
writing system language
SYSTEM
0
(c(Q34770),P282,c(Q8192))
action count
action greater
action find_tuple_counts
relation P282
type Q8192
type Q34770
action count
action filter_type
action find
entity Q35499
relation P282
type Q8192
[ANSWER]
[{'concept': 'Q34770'}, 'P282', {'concept': 'Q8192'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?h ) WHERE { { SELECT DISTINCT ?l ( COUNT ( ?e ) AS ?q ) WHERE { ?l property:P282 ?e . ?l rdf:type ontology:Q8192 . ?e rdf:type ontology:Q34770 } GROUP BY ?l } . FILTER ( ?q > ?x ) . { SELECT DISTINCT ( COUNT ( ?f ) AS ?x ) WHERE { resource:Q35499 property:P282 ?f . ?f rdf:type ontology:Q8192 } } }
0
action count
action greater
action find_tuple_counts
relation writing system
type writing system
type language
action count
action filter_type
action find
entity Old Church Slavonic
relation writing system
type writing system
[{'concept': 'language'}, 'writing system', {'concept': 'writing system'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?h ) WHERE { { SELECT DISTINCT ?l ( COUNT ( ?e ) AS ?q ) WHERE { ?l property:writing_system ?e . ?l rdf:type ontology:writing_system . ?e rdf:type ontology:language } GROUP BY ?l } . FILTER ( ?q > ?x ) . { SELECT DISTINCT ( COUNT ( ?f ) AS ?x ) WHERE { resource:Old_Church_Slavonic property:writing_system ?f . ?f rdf:type ontology:writing_system } } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q65806 Q207770
P937 P159
Q56061
USER
Which administrative territories are the headquarters of Pirelli located or are the locations where Ernst Laas worked ?
OR((Q207770,P159,c(Q56061)), (Q65806,P937,c(Q56061)))
action filter_type
action union
action find
entity Q207770
relation P159
action find
entity Q65806
relation P937
type Q56061
{'OR': [['Q207770', 'P159', {'concept': 'Q56061'}], ['Q65806', 'P937', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q56061 . { { resource:Q207770 property:P159 ?f } UNION { resource:Q65806 property:P937 ?f } } }
Ernst Laas Pirelli
action filter_type
action union
action find
entity Pirelli
relation headquarters location
action find
entity Ernst Laas
relation work location
type administrative territorial entity
{'OR': [['Pirelli', 'headquarters location', {'concept': 'administrative territorial entity'}], ['Ernst Laas', 'work location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:administrative_territorial_entity . { { resource:Pirelli property:headquarters_location ?f } UNION { resource:Ernst_Laas property:work_location ?f } } }
[]
administrative territorial entity
Q490 Q64
SYSTEM
Milan, Berlin
Q490 Q64
OR((Q207770,P159,c(Q56061)), (Q65806,P937,c(Q56061)))
action filter_type
action union
action find
entity Q207770
relation P159
action find
entity Q65806
relation P937
type Q56061
[ANSWERS] are the headquarters of Pirelli located or are the locations where Ernst Laas worked
{'OR': [['Q207770', 'P159', {'concept': 'Q56061'}], ['Q65806', 'P937', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q56061 . { { resource:Q207770 property:P159 ?f } UNION { resource:Q65806 property:P937 ?f } } }
Milan Berlin
Milan and Berlin are the headquarters of Pirelli located or are the locations where Ernst Laas worked
Milan Berlin
action filter_type
action union
action find
entity Pirelli
relation headquarters location
action find
entity Ernst Laas
relation work location
type administrative territorial entity
{'OR': [['Pirelli', 'headquarters location', {'concept': 'administrative territorial entity'}], ['Ernst Laas', 'work location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:administrative_territorial_entity . { { resource:Pirelli property:headquarters_location ?f } UNION { resource:Ernst_Laas property:work_location ?f } } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q64
P1001
Q327333
USER
Which government agencies have jurisdiction over that administrative territory ?
(c(Q327333),P1001,Q64)
action filter_type
action find_reverse
entity Q64
relation P1001
type Q327333
[{'concept': 'Q327333'}, 'P1001', 'Q64']
SELECT DISTINCT ?h WHERE { ?h property:P1001 resource:Q64 . ?h rdf:type ontology:Q327333 }
Berlin
action filter_type
action find_reverse
entity Berlin
relation applies to jurisdiction
type government agency
[{'concept': 'government agency'}, 'applies to jurisdiction', 'Berlin']
SELECT DISTINCT ?h WHERE { ?h property:applies_to_jurisdiction resource:Berlin . ?h rdf:type ontology:government_agency }
[]
government agency
Clarification for simple ques.
Q64
SYSTEM
Did you mean Berlin ?
Q490 Q64
(c(Q327333),P1001,Q490) (c(Q327333),P1001,Q64)
[ANSWER]
[{'concept': 'Q327333'}, 'P1001', 'Q490'] [{'concept': 'Q327333'}, 'P1001', 'Q64']
SELECT DISTINCT ?h WHERE { ?h property:P1001 resource:Q64 . ?h rdf:type ontology:Q327333 }
Milan Berlin
Did you mean Berlin ?
Berlin
[{'concept': 'government agency'}, 'applies to jurisdiction', 'Milan'] [{'concept': 'government agency'}, 'applies to jurisdiction', 'Berlin']
SELECT DISTINCT ?h WHERE { ?h property:applies_to_jurisdiction resource:Berlin . ?h rdf:type ontology:government_agency }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q327333),P1001,Q64)
[{'concept': 'Q327333'}, 'P1001', 'Q64']
[{'concept': 'government agency'}, 'applies to jurisdiction', 'Berlin']
[]
Q21776840 Q21776846 Q20758202
SYSTEM
Senate Department for Social Affairs and Health, Senate Department for Urban Development and the Environment, Landesamt für Gesundheit und Soziales
Q21776840 Q21776846 Q20758202
(c(Q327333),P1001,Q64)
action filter_type
action find_reverse
entity Q64
relation P1001
type Q327333
[ANSWERS] have jurisdiction over that administrative territory
[{'concept': 'Q327333'}, 'P1001', 'Q64']
SELECT DISTINCT ?h WHERE { ?h property:P1001 resource:Q64 . ?h rdf:type ontology:Q327333 }
Senate Department for Social Affairs and Health Senate Department for Urban Development and the Environment Landesamt für Gesundheit und Soziales
Senate Department for Social Affairs and Health, Senate Department for Urban Development and the Environment and Landesamt für Gesundheit und Soziales have jurisdiction over that administrative territory
Senate Department for Social Affairs and Health Senate Department for Urban Development and the Environment Landesamt für Gesundheit und Soziales
action filter_type
action find_reverse
entity Berlin
relation applies to jurisdiction
type government agency
[{'concept': 'government agency'}, 'applies to jurisdiction', 'Berlin']
SELECT DISTINCT ?h WHERE { ?h property:applies_to_jurisdiction resource:Berlin . ?h rdf:type ontology:government_agency }
[]