Simple Question (Direct)
Simple Question
Q877264
P21
Q290
USER
Which sex does Ivan Padovec possess ?
(Q877264,P21,c(Q290))
action filter_type
action find
entity Q877264
relation P21
type Q290
['Q877264', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?b WHERE { resource:Q877264 property:P21 ?b . ?b rdf:type ontology:Q290 }
Ivan Padovec
action filter_type
action find
entity Ivan Padovec
relation gender
type sex
['Ivan Padovec', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?b WHERE { resource:Ivan_Padovec property:gender ?b . ?b rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q877264,P21,c(Q290))
action filter_type
action find
entity Q877264
relation P21
type Q290
Ivan Padovec possesses un [ANSWER]
['Q877264', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?b WHERE { resource:Q877264 property:P21 ?b . ?b rdf:type ontology:Q290 }
male
Ivan Padovec possesses un male
male
action filter_type
action find
entity Ivan Padovec
relation gender
type sex
['Ivan Padovec', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?b WHERE { resource:Ivan_Padovec property:gender ?b . ?b rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q877264
P106
Q12737077
USER
Which occupations are the professions of Ivan Padovec ?
(Q877264,P106,c(Q12737077))
action filter_type
action find
entity Q877264
relation P106
type Q12737077
['Q877264', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?m WHERE { resource:Q877264 property:P106 ?m . ?m rdf:type ontology:Q12737077 }
Ivan Padovec
action filter_type
action find
entity Ivan Padovec
relation occupation
type occupation
['Ivan Padovec', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?m WHERE { resource:Ivan_Padovec property:occupation ?m . ?m rdf:type ontology:occupation }
[]
occupation
Q24067349 Q36834 Q19747285
SYSTEM
classical guitarist, composer, Academic musician
Q24067349 Q36834 Q19747285
(Q877264,P106,c(Q12737077))
action filter_type
action find
entity Q877264
relation P106
type Q12737077
The professions of Ivan Padovec are [ANSWERS]
['Q877264', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?m WHERE { resource:Q877264 property:P106 ?m . ?m rdf:type ontology:Q12737077 }
classical guitarist composer Academic musician
The professions of Ivan Padovec are classical guitarist, composer and Academic musician
classical guitarist composer Academic musician
action filter_type
action find
entity Ivan Padovec
relation occupation
type occupation
['Ivan Padovec', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?m WHERE { resource:Ivan_Padovec property:occupation ?m . ?m rdf:type ontology:occupation }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q2856393
Q12737077
USER
And how about Mohammad Hashem Pesaran?
(Q2856393,P106,c(Q12737077))
action filter_type
action find
entity Q2856393
relation P106
type Q12737077
['Q2856393', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?w WHERE { resource:Q2856393 property:P106 ?w . ?w rdf:type ontology:Q12737077 }
Mohammad Hashem Pesaran
action filter_type
action find
entity Mohammad Hashem Pesaran
relation occupation
type occupation
['Mohammad Hashem Pesaran', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?w WHERE { resource:Mohammad_Hashem_Pesaran property:occupation ?w . ?w rdf:type ontology:occupation }
[]
occupation
Q188094
SYSTEM
economist
Q188094
(Q2856393,P106,c(Q12737077))
action filter_type
action find
entity Q2856393
relation P106
type Q12737077
[ANSWER]
['Q2856393', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?w WHERE { resource:Q2856393 property:P106 ?w . ?w rdf:type ontology:Q12737077 }
economist
economist
action filter_type
action find
entity Mohammad Hashem Pesaran
relation occupation
type occupation
['Mohammad Hashem Pesaran', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?w WHERE { resource:Mohammad_Hashem_Pesaran property:occupation ?w . ?w rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2856393
P19
Q56061
USER
Which administrative territory is the place of birth of that person ?
(Q188094,P19,c(Q56061))
action filter_type
action find
entity Q2856393
relation P19
type Q56061
['Q188094', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q56061 . resource:Q2856393 property:P19 ?l }
Mohammad Hashem Pesaran
action filter_type
action find
entity Mohammad Hashem Pesaran
relation place of birth
type administrative territorial entity
['economist', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:administrative_territorial_entity . resource:Mohammad_Hashem_Pesaran property:place_of_birth ?l }
[]
administrative territorial entity
Q6397066
SYSTEM
Shiraz
Q6397066
(Q188094,P19,c(Q56061))
action filter_type
action find
entity Q2856393
relation P19
type Q56061
[ANSWER] is the place of birth of that person
['Q188094', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q56061 . resource:Q2856393 property:P19 ?l }
Shiraz
Shiraz is the place of birth of that person
Shiraz
action filter_type
action find
entity Mohammad Hashem Pesaran
relation place of birth
type administrative territorial entity
['economist', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:administrative_territorial_entity . resource:Mohammad_Hashem_Pesaran property:place_of_birth ?l }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P1376
Q13417114 Q7275
USER
How many noble families or states have that administrative territory as their capital ?
(Q6397066,P1376,c(Q13417114)) (Q6397066,P1376,c(Q7275)) (Q6397066,P1376,c(Q13417114)) (Q6397066,P1376,c(Q7275))
action count
action union
action filter_type
action find
entity Q6397066
relation P1376
type Q13417114
action filter_type
action find
entity Q6397066
relation P1376
type Q7275
['Q6397066', 'P1376', {'concept': 'Q13417114'}] ['Q6397066', 'P1376', {'concept': 'Q7275'}] ['Q6397066', 'P1376', {'concept': 'Q13417114'}] ['Q6397066', 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?q ) WHERE { { ?a rdf:type ontology:Q13417114 . resource:Q6397066 property:P1376 ?a } UNION { resource:Q6397066 property:P1376 ?a . ?a rdf:type ontology:Q7275 } }
action count
action union
action filter_type
action find
entity Shiraz
relation capital of
type noble family
action filter_type
action find
entity Shiraz
relation capital of
type state
['Shiraz', 'capital of', {'concept': 'noble family'}] ['Shiraz', 'capital of', {'concept': 'state'}] ['Shiraz', 'capital of', {'concept': 'noble family'}] ['Shiraz', 'capital of', {'concept': 'state'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?q ) WHERE { { ?a rdf:type ontology:noble_family . resource:Shiraz property:capital_of ?a } UNION { resource:Shiraz property:capital_of ?a . ?a rdf:type ontology:state } }
[]
noble family state
SYSTEM
3
Q146597 Q273874 Q1067513
(Q6397066,P1376,c(Q13417114)) (Q6397066,P1376,c(Q7275)) (Q6397066,P1376,c(Q13417114)) (Q6397066,P1376,c(Q7275))
action count
action union
action filter_type
action find
entity Q6397066
relation P1376
type Q13417114
action filter_type
action find
entity Q6397066
relation P1376
type Q7275
[ANSWER]
['Q6397066', 'P1376', {'concept': 'Q13417114'}] ['Q6397066', 'P1376', {'concept': 'Q7275'}] ['Q6397066', 'P1376', {'concept': 'Q13417114'}] ['Q6397066', 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?q ) WHERE { { ?a rdf:type ontology:Q13417114 . resource:Q6397066 property:P1376 ?a } UNION { resource:Q6397066 property:P1376 ?a . ?a rdf:type ontology:Q7275 } }
Zand dynasty Buyid dynasty Injuids
3
action count
action union
action filter_type
action find
entity Shiraz
relation capital of
type noble family
action filter_type
action find
entity Shiraz
relation capital of
type state
['Shiraz', 'capital of', {'concept': 'noble family'}] ['Shiraz', 'capital of', {'concept': 'state'}] ['Shiraz', 'capital of', {'concept': 'noble family'}] ['Shiraz', 'capital of', {'concept': 'state'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?q ) WHERE { { ?a rdf:type ontology:noble_family . resource:Shiraz property:capital_of ?a } UNION { resource:Shiraz property:capital_of ?a . ?a rdf:type ontology:state } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q6397066
P931
Q62447
USER
Which city does Shiraz serve ?
(c(Q62447),P931,Q6397066)
action filter_type
action find_reverse
entity Q6397066
relation P931
type Q62447
[{'concept': 'Q62447'}, 'P931', 'Q6397066']
SELECT DISTINCT ?z WHERE { ?z property:P931 resource:Q6397066 . ?z rdf:type ontology:Q62447 }
Shiraz
action filter_type
action find_reverse
entity Shiraz
relation place served by airport
type aerodrome
[{'concept': 'aerodrome'}, 'place served by airport', 'Shiraz']
SELECT DISTINCT ?z WHERE { ?z property:place_served_by_airport resource:Shiraz . ?z rdf:type ontology:aerodrome }
[]
aerodrome
Q1151896
SYSTEM
Shiraz International Airport, Iran
Q1151896
(c(Q62447),P931,Q6397066)
action filter_type
action find_reverse
entity Q6397066
relation P931
type Q62447
Shiraz serves [ANSWER]
[{'concept': 'Q62447'}, 'P931', 'Q6397066']
SELECT DISTINCT ?z WHERE { ?z property:P931 resource:Q6397066 . ?z rdf:type ontology:Q62447 }
Shiraz International Airport, Iran
Shiraz serves Shiraz International Airport, Iran
Shiraz International Airport, Iran
action filter_type
action find_reverse
entity Shiraz
relation place served by airport
type aerodrome
[{'concept': 'aerodrome'}, 'place served by airport', 'Shiraz']
SELECT DISTINCT ?z WHERE { ?z property:place_served_by_airport resource:Shiraz . ?z rdf:type ontology:aerodrome }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1151896
P17
Q15617994
USER
Which administrative territory does that aerodrome belong to ?
(Q1151896,P17,c(Q15617994))
action filter_type
action find
entity Q1151896
relation P17
type Q15617994
['Q1151896', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q15617994 . resource:Q1151896 property:P17 ?p }
Shiraz International Airport, Iran
action filter_type
action find
entity Shiraz International Airport, Iran
relation country
type designation for an administrative territorial entity
['Shiraz International Airport, Iran', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Shiraz_International_Airport,_Iran property:country ?p }
[]
designation for an administrative territorial entity
Q794
SYSTEM
Iran
Q794
(Q1151896,P17,c(Q15617994))
action filter_type
action find
entity Q1151896
relation P17
type Q15617994
That aerodrome belongs to [ANSWER]
['Q1151896', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q15617994 . resource:Q1151896 property:P17 ?p }
Iran
That aerodrome belongs to Iran
Iran
action filter_type
action find
entity Shiraz International Airport, Iran
relation country
type designation for an administrative territorial entity
['Shiraz International Airport, Iran', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Shiraz_International_Airport,_Iran property:country ?p }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q794 Q408 Q3824044
P530
Q1048835
USER
Does that administrative territory have tactful political relations with Australia and Santiago de Paucaray District ?
(Q794,P530,Q408) (Q794,P530,Q3824044)
action is_in
entity Q794
action intersection
action find_reverse
entity Q408
relation P530
action find_reverse
entity Q3824044
relation P530
['Q794', 'P530', 'Q408'] ['Q794', 'P530', 'Q3824044']
ASK WHERE { resource:Q794 property:P530 resource:Q3824044 . resource:Q794 property:P530 resource:Q408 }
Iran Australia Santiago de Paucaray District
action is_in
entity Iran
action intersection
action find_reverse
entity Australia
relation diplomatic relation
action find_reverse
entity Santiago de Paucaray District
relation diplomatic relation
['Iran', 'diplomatic relation', 'Australia'] ['Iran', 'diplomatic relation', 'Santiago de Paucaray District']
ASK WHERE { resource:Iran property:diplomatic_relation resource:Santiago_de_Paucaray_District . resource:Iran property:diplomatic_relation resource:Australia }
[]
political territorial entity
SYSTEM
YES and NO respectively
(Q794,P530,Q408) (Q794,P530,Q3824044)
action is_in
entity Q794
action intersection
action find_reverse
entity Q408
relation P530
action find_reverse
entity Q3824044
relation P530
[ANSWER]
['Q794', 'P530', 'Q408'] ['Q794', 'P530', 'Q3824044']
ASK WHERE { resource:Q794 property:P530 resource:Q3824044 . resource:Q794 property:P530 resource:Q408 }
YES and NO respectively
action is_in
entity Iran
action intersection
action find_reverse
entity Australia
relation diplomatic relation
action find_reverse
entity Santiago de Paucaray District
relation diplomatic relation
['Iran', 'diplomatic relation', 'Australia'] ['Iran', 'diplomatic relation', 'Santiago de Paucaray District']
ASK WHERE { resource:Iran property:diplomatic_relation resource:Santiago_de_Paucaray_District . resource:Iran property:diplomatic_relation resource:Australia }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q6397066
P937
Q502895
USER
Who is an person who works at Shiraz ?
(c(Q502895),P937,Q6397066)
action filter_type
action find_reverse
entity Q6397066
relation P937
type Q502895
[{'concept': 'Q502895'}, 'P937', 'Q6397066']
SELECT DISTINCT ?r WHERE { ?r property:P937 resource:Q6397066 . ?r rdf:type ontology:Q502895 }
Shiraz
action filter_type
action find_reverse
entity Shiraz
relation work location
type common name
[{'concept': 'common name'}, 'work location', 'Shiraz']
SELECT DISTINCT ?r WHERE { ?r property:work_location resource:Shiraz . ?r rdf:type ontology:common_name }
[]
common name
Q2660481
SYSTEM
Benedikt Hummel
Q2660481
(c(Q502895),P937,Q6397066)
action filter_type
action find_reverse
entity Q6397066
relation P937
type Q502895
An person works at Shiraz is [ANSWER]
[{'concept': 'Q502895'}, 'P937', 'Q6397066']
SELECT DISTINCT ?r WHERE { ?r property:P937 resource:Q6397066 . ?r rdf:type ontology:Q502895 }
Benedikt Hummel
An person works at Shiraz is Benedikt Hummel
Benedikt Hummel
action filter_type
action find_reverse
entity Shiraz
relation work location
type common name
[{'concept': 'common name'}, 'work location', 'Shiraz']
SELECT DISTINCT ?r WHERE { ?r property:work_location resource:Shiraz . ?r rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6397066
P361
Q137535
USER
What is that administrative territory a component of ?
(Q2660481,P361,c(Q137535))
action filter_type
action find
entity Q6397066
relation P361
type Q137535
['Q2660481', 'P361', {'concept': 'Q137535'}]
SELECT DISTINCT ?x WHERE { resource:Q6397066 property:P361 ?x . ?x rdf:type ontology:Q137535 }
Shiraz
action filter_type
action find
entity Shiraz
relation part of
type county of Iran
['Benedikt Hummel', 'part of', {'concept': 'county of Iran'}]
SELECT DISTINCT ?x WHERE { resource:Shiraz property:part_of ?x . ?x rdf:type ontology:county_of_Iran }
[]
county of Iran
Q2422280
SYSTEM
Shiraz County
Q2422280
(Q2660481,P361,c(Q137535))
action filter_type
action find
entity Q6397066
relation P361
type Q137535
That administrative territory a component of is in [ANSWER]
['Q2660481', 'P361', {'concept': 'Q137535'}]
SELECT DISTINCT ?x WHERE { resource:Q6397066 property:P361 ?x . ?x rdf:type ontology:Q137535 }
Shiraz County
That administrative territory a component of is in Shiraz County
Shiraz County
action filter_type
action find
entity Shiraz
relation part of
type county of Iran
['Benedikt Hummel', 'part of', {'concept': 'county of Iran'}]
SELECT DISTINCT ?x WHERE { resource:Shiraz property:part_of ?x . ?x rdf:type ontology:county_of_Iran }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q794 Q2422280
P361 P17
Q56061
USER
Which administrative territories are a part of Shiraz County and are present in Iran ?
AND((c(Q56061),P361,Q2422280), (c(Q56061),P17,Q794))
action filter_type
action intersection
action find_reverse
entity Q2422280
relation P361
action find_reverse
entity Q794
relation P17
type Q56061
{'AND': [[{'concept': 'Q56061'}, 'P361', 'Q2422280'], [{'concept': 'Q56061'}, 'P17', 'Q794']]}
SELECT DISTINCT ?w WHERE { ?w property:P361 resource:Q2422280 . ?w property:P17 resource:Q794 . ?w rdf:type ontology:Q56061 }
Iran Shiraz County
action filter_type
action intersection
action find_reverse
entity Shiraz County
relation part of
action find_reverse
entity Iran
relation country
type administrative territorial entity
{'AND': [[{'concept': 'administrative territorial entity'}, 'part of', 'Shiraz County'], [{'concept': 'administrative territorial entity'}, 'country', 'Iran']]}
SELECT DISTINCT ?w WHERE { ?w property:part_of resource:Shiraz_County . ?w property:country resource:Iran . ?w rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q2617195 Q6397066 Q4521363
SYSTEM
Lapui, Shiraz, Shahre-Jadide-Sadra
Q2617195 Q6397066 Q4521363
AND((c(Q56061),P361,Q2422280), (c(Q56061),P17,Q794))
action filter_type
action intersection
action find_reverse
entity Q2422280
relation P361
action find_reverse
entity Q794
relation P17
type Q56061
[ANSWERS] are a part of Shiraz County and are present in Iran
{'AND': [[{'concept': 'Q56061'}, 'P361', 'Q2422280'], [{'concept': 'Q56061'}, 'P17', 'Q794']]}
SELECT DISTINCT ?w WHERE { ?w property:P361 resource:Q2422280 . ?w property:P17 resource:Q794 . ?w rdf:type ontology:Q56061 }
Lapui Shiraz Shahre-Jadide-Sadra
Lapui, Shiraz and Shahre-Jadide-Sadra are a part of Shiraz County and are present in Iran
Lapui Shiraz Shahre-Jadide-Sadra
action filter_type
action intersection
action find_reverse
entity Shiraz County
relation part of
action find_reverse
entity Iran
relation country
type administrative territorial entity
{'AND': [[{'concept': 'administrative territorial entity'}, 'part of', 'Shiraz County'], [{'concept': 'administrative territorial entity'}, 'country', 'Iran']]}
SELECT DISTINCT ?w WHERE { ?w property:part_of resource:Shiraz_County . ?w property:country resource:Iran . ?w rdf:type ontology:administrative_territorial_entity }
[]