Simple Question (Direct)
Simple Question
Q5698868
P106
Q12737077
USER
Which occupation is the profession of Heidi Greni ?
(Q5698868,P106,c(Q12737077))
action filter_type
action find
entity Q5698868
relation P106
type Q12737077
['Q5698868', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q12737077 . resource:Q5698868 property:P106 ?y }
Heidi Greni
action filter_type
action find
entity Heidi Greni
relation occupation
type occupation
['Heidi Greni', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:occupation . resource:Heidi_Greni property:occupation ?y }
[]
occupation
Q82955
SYSTEM
politician
Q82955
(Q5698868,P106,c(Q12737077))
action filter_type
action find
entity Q5698868
relation P106
type Q12737077
Was [ANSWER] is the profession of Heidi Greni
['Q5698868', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q12737077 . resource:Q5698868 property:P106 ?y }
politician
Was politician is the profession of Heidi Greni
politician
action filter_type
action find
entity Heidi Greni
relation occupation
type occupation
['Heidi Greni', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:occupation . resource:Heidi_Greni property:occupation ?y }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5698868
P39
Q12737077
USER
What was the position for which that person was appointed ?
(Q82955,P39,c(Q12737077))
action filter_type
action find
entity Q5698868
relation P39
type Q12737077
['Q82955', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?h WHERE { resource:Q5698868 property:P39 ?h . ?h rdf:type ontology:Q12737077 }
Heidi Greni
action filter_type
action find
entity Heidi Greni
relation position held
type occupation
['politician', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?h WHERE { resource:Heidi_Greni property:position_held ?h . ?h rdf:type ontology:occupation }
[]
occupation
Q9045502
SYSTEM
member of the Parliament of Norway
Q9045502
(Q82955,P39,c(Q12737077))
action filter_type
action find
entity Q5698868
relation P39
type Q12737077
[ANSWER]
['Q82955', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?h WHERE { resource:Q5698868 property:P39 ?h . ?h rdf:type ontology:Q12737077 }
member of the Parliament of Norway
Member of the Parliament of Norway
member of the Parliament of Norway
action filter_type
action find
entity Heidi Greni
relation position held
type occupation
['politician', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?h WHERE { resource:Heidi_Greni property:position_held ?h . ?h rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5698868
P937
Q56061
USER
What is the location where that person worked ?
(Q9045502,P937,c(Q56061))
action filter_type
action find
entity Q5698868
relation P937
type Q56061
['Q9045502', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q56061 . resource:Q5698868 property:P937 ?e }
Heidi Greni
action filter_type
action find
entity Heidi Greni
relation work location
type administrative territorial entity
['member of the Parliament of Norway', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:administrative_territorial_entity . resource:Heidi_Greni property:work_location ?e }
[]
administrative territorial entity
Q585
SYSTEM
Oslo
Q585
(Q9045502,P937,c(Q56061))
action filter_type
action find
entity Q5698868
relation P937
type Q56061
The location that person worked is for [ANSWER]
['Q9045502', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q56061 . resource:Q5698868 property:P937 ?e }
Oslo
The location that person worked is for Oslo
Oslo
action filter_type
action find
entity Heidi Greni
relation work location
type administrative territorial entity
['member of the Parliament of Norway', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:administrative_territorial_entity . resource:Heidi_Greni property:work_location ?e }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Indirect
P47
Q13220204
USER
How many administrative country subdivisions are adjacent to that administrative territory ?
(Q585,P47,c(Q13220204))
action count
action filter_type
action find
entity Q585
relation P47
type Q13220204
['Q585', 'P47', {'concept': 'Q13220204'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?t ) WHERE { ?q rdf:type ontology:Q13220204 . resource:Q585 property:P47 ?q }
action count
action filter_type
action find
entity Oslo
relation shares border with
type second-level administrative country subdivision
['Oslo', 'shares border with', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?t ) WHERE { ?q rdf:type ontology:second-level_administrative_country_subdivision . resource:Oslo property:shares_border_with ?q }
[]
second-level administrative country subdivision
SYSTEM
10
Q57871 Q488398 Q57868 Q57865 Q57864 Q57912 Q57076 Q57860 Q57081 Q110848
(Q585,P47,c(Q13220204))
action count
action filter_type
action find
entity Q585
relation P47
type Q13220204
[ANSWER]
['Q585', 'P47', {'concept': 'Q13220204'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?t ) WHERE { ?q rdf:type ontology:Q13220204 . resource:Q585 property:P47 ?q }
Skedsmo Lunner Oppegård Nittedal Nesodden Ski Bærum Lørenskog Enebakk Ringerike
10
action count
action filter_type
action find
entity Oslo
relation shares border with
type second-level administrative country subdivision
['Oslo', 'shares border with', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?t ) WHERE { ?q rdf:type ontology:second-level_administrative_country_subdivision . resource:Oslo property:shares_border_with ?q }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q585 Q613
P190
Q515
USER
How many cities are the sister cities of Oslo or Emirate of Dubai ?
(Q585,P190,c(Q515)) (Q613,P190,c(Q515))
action count
action union
action filter_type
action find
entity Q585
relation P190
type Q515
action filter_type
action find
entity Q613
relation P190
type Q515
['Q585', 'P190', {'concept': 'Q515'}] ['Q613', 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?f ) WHERE { { ?l rdf:type ontology:Q515 . resource:Q585 property:P190 ?l } UNION { ?l rdf:type ontology:Q515 . resource:Q613 property:P190 ?l } }
Oslo Emirate of Dubai
action count
action union
action filter_type
action find
entity Oslo
relation sister city
type city
action filter_type
action find
entity Emirate of Dubai
relation sister city
type city
['Oslo', 'sister city', {'concept': 'city'}] ['Emirate of Dubai', 'sister city', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?f ) WHERE { { ?l rdf:type ontology:city . resource:Oslo property:sister_city ?l } UNION { ?l rdf:type ontology:city . resource:Emirate_of_Dubai property:sister_city ?l } }
[]
city
SYSTEM
3
Q16520 Q1530 Q1794
(Q585,P190,c(Q515)) (Q613,P190,c(Q515))
action count
action union
action filter_type
action find
entity Q585
relation P190
type Q515
action filter_type
action find
entity Q613
relation P190
type Q515
[ANSWER]
['Q585', 'P190', {'concept': 'Q515'}] ['Q613', 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?f ) WHERE { { ?l rdf:type ontology:Q515 . resource:Q585 property:P190 ?l } UNION { ?l rdf:type ontology:Q515 . resource:Q613 property:P190 ?l } }
Busan Baghdad Frankfurt
3
action count
action union
action filter_type
action find
entity Oslo
relation sister city
type city
action filter_type
action find
entity Emirate of Dubai
relation sister city
type city
['Oslo', 'sister city', {'concept': 'city'}] ['Emirate of Dubai', 'sister city', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?f ) WHERE { { ?l rdf:type ontology:city . resource:Oslo property:sister_city ?l } UNION { ?l rdf:type ontology:city . resource:Emirate_of_Dubai property:sister_city ?l } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q452956 Q613
P19 P190
Q56061
USER
Which administrative territories are partner towns of Emirate of Dubai or are the birthplace of Inna Sheshkil ?
OR((Q613,P190,c(Q56061)), (Q452956,P19,c(Q56061)))
action filter_type
action union
action find
entity Q613
relation P190
action find
entity Q452956
relation P19
type Q56061
{'OR': [['Q613', 'P190', {'concept': 'Q56061'}], ['Q452956', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q56061 . { { resource:Q613 property:P190 ?w } UNION { resource:Q452956 property:P19 ?w } } }
Inna Sheshkil Emirate of Dubai
action filter_type
action union
action find
entity Emirate of Dubai
relation sister city
action find
entity Inna Sheshkil
relation place of birth
type administrative territorial entity
{'OR': [['Emirate of Dubai', 'sister city', {'concept': 'administrative territorial entity'}], ['Inna Sheshkil', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:administrative_territorial_entity . { { resource:Emirate_of_Dubai property:sister_city ?w } UNION { resource:Inna_Sheshkil property:place_of_birth ?w } } }
[]
administrative territorial entity
Q3579 Q3766 Q93338 Q1520 Q12439 Q8686 Q1019392 Q3820 Q406 Q71
SYSTEM
Tripoli, Damascus, Gaziantep, Astana, Detroit, Shanghai, Makinsk, Beirut, Istanbul, Geneva
Q3579 Q3766 Q93338 Q1520 Q12439 Q8686 Q1019392 Q3820 Q406 Q71
OR((Q613,P190,c(Q56061)), (Q452956,P19,c(Q56061)))
action filter_type
action union
action find
entity Q613
relation P190
action find
entity Q452956
relation P19
type Q56061
[ANSWERS] are partner towns of Emirate of Dubai or are the birthplace of Inna Sheshkil
{'OR': [['Q613', 'P190', {'concept': 'Q56061'}], ['Q452956', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q56061 . { { resource:Q613 property:P190 ?w } UNION { resource:Q452956 property:P19 ?w } } }
Tripoli Damascus Gaziantep Astana Detroit Shanghai Makinsk Beirut Istanbul Geneva
Tripoli, Damascus, Gaziantep, Astana, Detroit, Shanghai, Makinsk, Beirut, Istanbul and Geneva are partner towns of Emirate of Dubai or are the birthplace of Inna Sheshkil
Tripoli Damascus Gaziantep Astana Detroit Shanghai Makinsk Beirut Istanbul Geneva
action filter_type
action union
action find
entity Emirate of Dubai
relation sister city
action find
entity Inna Sheshkil
relation place of birth
type administrative territorial entity
{'OR': [['Emirate of Dubai', 'sister city', {'concept': 'administrative territorial entity'}], ['Inna Sheshkil', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:administrative_territorial_entity . { { resource:Emirate_of_Dubai property:sister_city ?w } UNION { resource:Inna_Sheshkil property:place_of_birth ?w } } }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P190
Q13220204 Q19833031
USER
How many administrative country subdivisions or emirates of the United Arab Emirates are sister town of that administrative territory ?
(c(Q13220204),P190,Q3579) (c(Q19833031),P190,Q3579) (c(Q13220204),P190,Q3579) (c(Q19833031),P190,Q3579) (c(Q13220204),P190,Q3766) (c(Q19833031),P190,Q3766) (c(Q13220204),P190,Q93338) (c(Q19833031),P190,Q93338) (c(Q13220204),P190,Q1520) (c(Q19833031),P190,Q1520) (c(Q13220204),P190,Q12439) (c(Q19833031),P190,Q12439) (c(Q13220204),P190,Q8686) (c(Q19833031),P190,Q8686) (c(Q13220204),P190,Q1019392) (c(Q19833031),P190,Q1019392) (c(Q13220204),P190,Q3820) (c(Q19833031),P190,Q3820) (c(Q13220204),P190,Q406) (c(Q19833031),P190,Q406) (c(Q13220204),P190,Q71) (c(Q19833031),P190,Q71)
[{'concept': 'Q13220204'}, 'P190', 'Q3579'] [{'concept': 'Q19833031'}, 'P190', 'Q3579'] [{'concept': 'Q13220204'}, 'P190', 'Q3579'] [{'concept': 'Q19833031'}, 'P190', 'Q3579'] [{'concept': 'Q13220204'}, 'P190', 'Q3766'] [{'concept': 'Q19833031'}, 'P190', 'Q3766'] [{'concept': 'Q13220204'}, 'P190', 'Q93338'] [{'concept': 'Q19833031'}, 'P190', 'Q93338'] [{'concept': 'Q13220204'}, 'P190', 'Q1520'] [{'concept': 'Q19833031'}, 'P190', 'Q1520'] [{'concept': 'Q13220204'}, 'P190', 'Q12439'] [{'concept': 'Q19833031'}, 'P190', 'Q12439'] [{'concept': 'Q13220204'}, 'P190', 'Q8686'] [{'concept': 'Q19833031'}, 'P190', 'Q8686'] [{'concept': 'Q13220204'}, 'P190', 'Q1019392'] [{'concept': 'Q19833031'}, 'P190', 'Q1019392'] [{'concept': 'Q13220204'}, 'P190', 'Q3820'] [{'concept': 'Q19833031'}, 'P190', 'Q3820'] [{'concept': 'Q13220204'}, 'P190', 'Q406'] [{'concept': 'Q19833031'}, 'P190', 'Q406'] [{'concept': 'Q13220204'}, 'P190', 'Q71'] [{'concept': 'Q19833031'}, 'P190', 'Q71']
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { ?z property:P190 resource:Q3579 } UNION { ?y property:P190 resource:Q3579 } UNION { ?z property:P190 resource:Q3579 } UNION { ?y property:P190 resource:Q3579 } UNION { ?z property:P190 resource:Q3476539 } UNION { ?y property:P190 resource:Q3476539 } UNION { ?z property:P190 resource:Q93338 } UNION { ?y property:P190 resource:Q93338 } UNION { ?z property:P190 resource:Q478309 } UNION { ?y property:P190 resource:Q478309 } UNION { ?z property:P190 resource:Q648770 } UNION { ?y property:P190 resource:Q648770 } UNION { ?z property:P190 resource:Q7488397 } UNION { ?y property:P190 resource:Q7488397 } UNION { ?z property:P190 resource:Q1019392 } UNION { ?y property:P190 resource:Q1019392 } UNION { ?z property:P190 resource:Q692668 } UNION { ?y property:P190 resource:Q692668 } UNION { ?z property:P190 resource:Q18352396 } UNION { ?y property:P190 resource:Q18352396 } UNION { ?z property:P190 resource:Q18564741 } UNION { ?y property:P190 resource:Q18564741 } } . ?z rdf:type ontology:Q13220204 . ?y rdf:type ontology:Q19833031 }
[{'concept': 'second-level administrative country subdivision'}, 'sister city', 'Tripoli'] [{'concept': 'emirate of the United Arab Emirates'}, 'sister city', 'Tripoli'] [{'concept': 'second-level administrative country subdivision'}, 'sister city', 'Tripoli'] [{'concept': 'emirate of the United Arab Emirates'}, 'sister city', 'Tripoli'] [{'concept': 'second-level administrative country subdivision'}, 'sister city', 'Damascus'] [{'concept': 'emirate of the United Arab Emirates'}, 'sister city', 'Damascus'] [{'concept': 'second-level administrative country subdivision'}, 'sister city', 'Gaziantep'] [{'concept': 'emirate of the United Arab Emirates'}, 'sister city', 'Gaziantep'] [{'concept': 'second-level administrative country subdivision'}, 'sister city', 'Astana'] [{'concept': 'emirate of the United Arab Emirates'}, 'sister city', 'Astana'] [{'concept': 'second-level administrative country subdivision'}, 'sister city', 'Detroit'] [{'concept': 'emirate of the United Arab Emirates'}, 'sister city', 'Detroit'] [{'concept': 'second-level administrative country subdivision'}, 'sister city', 'Shanghai'] [{'concept': 'emirate of the United Arab Emirates'}, 'sister city', 'Shanghai'] [{'concept': 'second-level administrative country subdivision'}, 'sister city', 'Makinsk'] [{'concept': 'emirate of the United Arab Emirates'}, 'sister city', 'Makinsk'] [{'concept': 'second-level administrative country subdivision'}, 'sister city', 'Beirut'] [{'concept': 'emirate of the United Arab Emirates'}, 'sister city', 'Beirut'] [{'concept': 'second-level administrative country subdivision'}, 'sister city', 'Istanbul'] [{'concept': 'emirate of the United Arab Emirates'}, 'sister city', 'Istanbul'] [{'concept': 'second-level administrative country subdivision'}, 'sister city', 'Geneva'] [{'concept': 'emirate of the United Arab Emirates'}, 'sister city', 'Geneva']
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { ?z property:sister_city resource:Tripoli } UNION { ?y property:sister_city resource:Tripoli } UNION { ?z property:sister_city resource:Tripoli } UNION { ?y property:sister_city resource:Tripoli } UNION { ?z property:sister_city resource:Damascus } UNION { ?y property:sister_city resource:Damascus } UNION { ?z property:sister_city resource:Gaziantep } UNION { ?y property:sister_city resource:Gaziantep } UNION { ?z property:sister_city resource:Astana } UNION { ?y property:sister_city resource:Astana } UNION { ?z property:sister_city resource:Detroit } UNION { ?y property:sister_city resource:Detroit } UNION { ?z property:sister_city resource:Shanghai } UNION { ?y property:sister_city resource:Shanghai } UNION { ?z property:sister_city resource:Makinsk } UNION { ?y property:sister_city resource:Makinsk } UNION { ?z property:sister_city resource:Beirut } UNION { ?y property:sister_city resource:Beirut } UNION { ?z property:sister_city resource:Istanbul } UNION { ?y property:sister_city resource:Istanbul } UNION { ?z property:sister_city resource:Geneva } UNION { ?y property:sister_city resource:Geneva } } . ?z rdf:type ontology:second-level_administrative_country_subdivision . ?y rdf:type ontology:emirate_of_the_United_Arab_Emirates }
[]
second-level administrative country subdivision emirate of the United Arab Emirates
Quantitative|Count|Mult. entity type|Clarification
Q3766
SYSTEM
Did you mean Damascus ?
[ANSWER]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { ?z property:P190 resource:Q3579 } UNION { ?y property:P190 resource:Q3579 } UNION { ?z property:P190 resource:Q3579 } UNION { ?y property:P190 resource:Q3579 } UNION { ?z property:P190 resource:Q3476539 } UNION { ?y property:P190 resource:Q3476539 } UNION { ?z property:P190 resource:Q93338 } UNION { ?y property:P190 resource:Q93338 } UNION { ?z property:P190 resource:Q478309 } UNION { ?y property:P190 resource:Q478309 } UNION { ?z property:P190 resource:Q648770 } UNION { ?y property:P190 resource:Q648770 } UNION { ?z property:P190 resource:Q7488397 } UNION { ?y property:P190 resource:Q7488397 } UNION { ?z property:P190 resource:Q1019392 } UNION { ?y property:P190 resource:Q1019392 } UNION { ?z property:P190 resource:Q692668 } UNION { ?y property:P190 resource:Q692668 } UNION { ?z property:P190 resource:Q18352396 } UNION { ?y property:P190 resource:Q18352396 } UNION { ?z property:P190 resource:Q18564741 } UNION { ?y property:P190 resource:Q18564741 } } . ?z rdf:type ontology:Q13220204 . ?y rdf:type ontology:Q19833031 }
Did you mean Damascus ?
Damascus
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { ?z property:sister_city resource:Tripoli } UNION { ?y property:sister_city resource:Tripoli } UNION { ?z property:sister_city resource:Tripoli } UNION { ?y property:sister_city resource:Tripoli } UNION { ?z property:sister_city resource:Damascus } UNION { ?y property:sister_city resource:Damascus } UNION { ?z property:sister_city resource:Gaziantep } UNION { ?y property:sister_city resource:Gaziantep } UNION { ?z property:sister_city resource:Astana } UNION { ?y property:sister_city resource:Astana } UNION { ?z property:sister_city resource:Detroit } UNION { ?y property:sister_city resource:Detroit } UNION { ?z property:sister_city resource:Shanghai } UNION { ?y property:sister_city resource:Shanghai } UNION { ?z property:sister_city resource:Makinsk } UNION { ?y property:sister_city resource:Makinsk } UNION { ?z property:sister_city resource:Beirut } UNION { ?y property:sister_city resource:Beirut } UNION { ?z property:sister_city resource:Istanbul } UNION { ?y property:sister_city resource:Istanbul } UNION { ?z property:sister_city resource:Geneva } UNION { ?y property:sister_city resource:Geneva } } . ?z rdf:type ontology:second-level_administrative_country_subdivision . ?y rdf:type ontology:emirate_of_the_United_Arab_Emirates }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Tripoli. Could you tell me the answer for that?
(c(Q13220204),P190,Q3579) (c(Q19833031),P190,Q3579) (c(Q13220204),P190,Q3579) (c(Q19833031),P190,Q3579) (c(Q13220204),P190,Q3766) (c(Q19833031),P190,Q3766) (c(Q13220204),P190,Q93338) (c(Q19833031),P190,Q93338) (c(Q13220204),P190,Q1520) (c(Q19833031),P190,Q1520) (c(Q13220204),P190,Q12439) (c(Q19833031),P190,Q12439) (c(Q13220204),P190,Q8686) (c(Q19833031),P190,Q8686) (c(Q13220204),P190,Q1019392) (c(Q19833031),P190,Q1019392) (c(Q13220204),P190,Q3820) (c(Q19833031),P190,Q3820) (c(Q13220204),P190,Q406) (c(Q19833031),P190,Q406) (c(Q13220204),P190,Q71) (c(Q19833031),P190,Q71)
Q3579
[{'concept': 'Q13220204'}, 'P190', 'Q3579'] [{'concept': 'Q19833031'}, 'P190', 'Q3579'] [{'concept': 'Q13220204'}, 'P190', 'Q3579'] [{'concept': 'Q19833031'}, 'P190', 'Q3579'] [{'concept': 'Q13220204'}, 'P190', 'Q3766'] [{'concept': 'Q19833031'}, 'P190', 'Q3766'] [{'concept': 'Q13220204'}, 'P190', 'Q93338'] [{'concept': 'Q19833031'}, 'P190', 'Q93338'] [{'concept': 'Q13220204'}, 'P190', 'Q1520'] [{'concept': 'Q19833031'}, 'P190', 'Q1520'] [{'concept': 'Q13220204'}, 'P190', 'Q12439'] [{'concept': 'Q19833031'}, 'P190', 'Q12439'] [{'concept': 'Q13220204'}, 'P190', 'Q8686'] [{'concept': 'Q19833031'}, 'P190', 'Q8686'] [{'concept': 'Q13220204'}, 'P190', 'Q1019392'] [{'concept': 'Q19833031'}, 'P190', 'Q1019392'] [{'concept': 'Q13220204'}, 'P190', 'Q3820'] [{'concept': 'Q19833031'}, 'P190', 'Q3820'] [{'concept': 'Q13220204'}, 'P190', 'Q406'] [{'concept': 'Q19833031'}, 'P190', 'Q406'] [{'concept': 'Q13220204'}, 'P190', 'Q71'] [{'concept': 'Q19833031'}, 'P190', 'Q71']
[{'concept': 'second-level administrative country subdivision'}, 'sister city', 'Tripoli'] [{'concept': 'emirate of the United Arab Emirates'}, 'sister city', 'Tripoli'] [{'concept': 'second-level administrative country subdivision'}, 'sister city', 'Tripoli'] [{'concept': 'emirate of the United Arab Emirates'}, 'sister city', 'Tripoli'] [{'concept': 'second-level administrative country subdivision'}, 'sister city', 'Damascus'] [{'concept': 'emirate of the United Arab Emirates'}, 'sister city', 'Damascus'] [{'concept': 'second-level administrative country subdivision'}, 'sister city', 'Gaziantep'] [{'concept': 'emirate of the United Arab Emirates'}, 'sister city', 'Gaziantep'] [{'concept': 'second-level administrative country subdivision'}, 'sister city', 'Astana'] [{'concept': 'emirate of the United Arab Emirates'}, 'sister city', 'Astana'] [{'concept': 'second-level administrative country subdivision'}, 'sister city', 'Detroit'] [{'concept': 'emirate of the United Arab Emirates'}, 'sister city', 'Detroit'] [{'concept': 'second-level administrative country subdivision'}, 'sister city', 'Shanghai'] [{'concept': 'emirate of the United Arab Emirates'}, 'sister city', 'Shanghai'] [{'concept': 'second-level administrative country subdivision'}, 'sister city', 'Makinsk'] [{'concept': 'emirate of the United Arab Emirates'}, 'sister city', 'Makinsk'] [{'concept': 'second-level administrative country subdivision'}, 'sister city', 'Beirut'] [{'concept': 'emirate of the United Arab Emirates'}, 'sister city', 'Beirut'] [{'concept': 'second-level administrative country subdivision'}, 'sister city', 'Istanbul'] [{'concept': 'emirate of the United Arab Emirates'}, 'sister city', 'Istanbul'] [{'concept': 'second-level administrative country subdivision'}, 'sister city', 'Geneva'] [{'concept': 'emirate of the United Arab Emirates'}, 'sister city', 'Geneva']
[]
SYSTEM
2
Q2841 Q613
(c(Q13220204),P190,Q3579) (c(Q19833031),P190,Q3579) (c(Q13220204),P190,Q3579) (c(Q19833031),P190,Q3579) (c(Q13220204),P190,Q3766) (c(Q19833031),P190,Q3766) (c(Q13220204),P190,Q93338) (c(Q19833031),P190,Q93338) (c(Q13220204),P190,Q1520) (c(Q19833031),P190,Q1520) (c(Q13220204),P190,Q12439) (c(Q19833031),P190,Q12439) (c(Q13220204),P190,Q8686) (c(Q19833031),P190,Q8686) (c(Q13220204),P190,Q1019392) (c(Q19833031),P190,Q1019392) (c(Q13220204),P190,Q3820) (c(Q19833031),P190,Q3820) (c(Q13220204),P190,Q406) (c(Q19833031),P190,Q406) (c(Q13220204),P190,Q71) (c(Q19833031),P190,Q71)
[ANSWER]
[{'concept': 'Q13220204'}, 'P190', 'Q3579'] [{'concept': 'Q19833031'}, 'P190', 'Q3579'] [{'concept': 'Q13220204'}, 'P190', 'Q3579'] [{'concept': 'Q19833031'}, 'P190', 'Q3579'] [{'concept': 'Q13220204'}, 'P190', 'Q3766'] [{'concept': 'Q19833031'}, 'P190', 'Q3766'] [{'concept': 'Q13220204'}, 'P190', 'Q93338'] [{'concept': 'Q19833031'}, 'P190', 'Q93338'] [{'concept': 'Q13220204'}, 'P190', 'Q1520'] [{'concept': 'Q19833031'}, 'P190', 'Q1520'] [{'concept': 'Q13220204'}, 'P190', 'Q12439'] [{'concept': 'Q19833031'}, 'P190', 'Q12439'] [{'concept': 'Q13220204'}, 'P190', 'Q8686'] [{'concept': 'Q19833031'}, 'P190', 'Q8686'] [{'concept': 'Q13220204'}, 'P190', 'Q1019392'] [{'concept': 'Q19833031'}, 'P190', 'Q1019392'] [{'concept': 'Q13220204'}, 'P190', 'Q3820'] [{'concept': 'Q19833031'}, 'P190', 'Q3820'] [{'concept': 'Q13220204'}, 'P190', 'Q406'] [{'concept': 'Q19833031'}, 'P190', 'Q406'] [{'concept': 'Q13220204'}, 'P190', 'Q71'] [{'concept': 'Q19833031'}, 'P190', 'Q71']
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { ?z property:P190 resource:Q3579 } UNION { ?y property:P190 resource:Q3579 } UNION { ?z property:P190 resource:Q3579 } UNION { ?y property:P190 resource:Q3579 } UNION { ?z property:P190 resource:Q3476539 } UNION { ?y property:P190 resource:Q3476539 } UNION { ?z property:P190 resource:Q93338 } UNION { ?y property:P190 resource:Q93338 } UNION { ?z property:P190 resource:Q478309 } UNION { ?y property:P190 resource:Q478309 } UNION { ?z property:P190 resource:Q648770 } UNION { ?y property:P190 resource:Q648770 } UNION { ?z property:P190 resource:Q7488397 } UNION { ?y property:P190 resource:Q7488397 } UNION { ?z property:P190 resource:Q1019392 } UNION { ?y property:P190 resource:Q1019392 } UNION { ?z property:P190 resource:Q692668 } UNION { ?y property:P190 resource:Q692668 } UNION { ?z property:P190 resource:Q18352396 } UNION { ?y property:P190 resource:Q18352396 } UNION { ?z property:P190 resource:Q18564741 } UNION { ?y property:P190 resource:Q18564741 } } . ?z rdf:type ontology:Q13220204 . ?y rdf:type ontology:Q19833031 }
Bogotá Emirate of Dubai
2
[{'concept': 'second-level administrative country subdivision'}, 'sister city', 'Tripoli'] [{'concept': 'emirate of the United Arab Emirates'}, 'sister city', 'Tripoli'] [{'concept': 'second-level administrative country subdivision'}, 'sister city', 'Tripoli'] [{'concept': 'emirate of the United Arab Emirates'}, 'sister city', 'Tripoli'] [{'concept': 'second-level administrative country subdivision'}, 'sister city', 'Damascus'] [{'concept': 'emirate of the United Arab Emirates'}, 'sister city', 'Damascus'] [{'concept': 'second-level administrative country subdivision'}, 'sister city', 'Gaziantep'] [{'concept': 'emirate of the United Arab Emirates'}, 'sister city', 'Gaziantep'] [{'concept': 'second-level administrative country subdivision'}, 'sister city', 'Astana'] [{'concept': 'emirate of the United Arab Emirates'}, 'sister city', 'Astana'] [{'concept': 'second-level administrative country subdivision'}, 'sister city', 'Detroit'] [{'concept': 'emirate of the United Arab Emirates'}, 'sister city', 'Detroit'] [{'concept': 'second-level administrative country subdivision'}, 'sister city', 'Shanghai'] [{'concept': 'emirate of the United Arab Emirates'}, 'sister city', 'Shanghai'] [{'concept': 'second-level administrative country subdivision'}, 'sister city', 'Makinsk'] [{'concept': 'emirate of the United Arab Emirates'}, 'sister city', 'Makinsk'] [{'concept': 'second-level administrative country subdivision'}, 'sister city', 'Beirut'] [{'concept': 'emirate of the United Arab Emirates'}, 'sister city', 'Beirut'] [{'concept': 'second-level administrative country subdivision'}, 'sister city', 'Istanbul'] [{'concept': 'emirate of the United Arab Emirates'}, 'sister city', 'Istanbul'] [{'concept': 'second-level administrative country subdivision'}, 'sister city', 'Geneva'] [{'concept': 'emirate of the United Arab Emirates'}, 'sister city', 'Geneva']
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { ?z property:sister_city resource:Tripoli } UNION { ?y property:sister_city resource:Tripoli } UNION { ?z property:sister_city resource:Tripoli } UNION { ?y property:sister_city resource:Tripoli } UNION { ?z property:sister_city resource:Damascus } UNION { ?y property:sister_city resource:Damascus } UNION { ?z property:sister_city resource:Gaziantep } UNION { ?y property:sister_city resource:Gaziantep } UNION { ?z property:sister_city resource:Astana } UNION { ?y property:sister_city resource:Astana } UNION { ?z property:sister_city resource:Detroit } UNION { ?y property:sister_city resource:Detroit } UNION { ?z property:sister_city resource:Shanghai } UNION { ?y property:sister_city resource:Shanghai } UNION { ?z property:sister_city resource:Makinsk } UNION { ?y property:sister_city resource:Makinsk } UNION { ?z property:sister_city resource:Beirut } UNION { ?y property:sister_city resource:Beirut } UNION { ?z property:sister_city resource:Istanbul } UNION { ?y property:sister_city resource:Istanbul } UNION { ?z property:sister_city resource:Geneva } UNION { ?y property:sister_city resource:Geneva } } . ?z rdf:type ontology:second-level_administrative_country_subdivision . ?y rdf:type ontology:emirate_of_the_United_Arab_Emirates }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3579
P1376
Q7275
USER
Which states have Tripoli have their first city ?
(Q3579,P1376,c(Q7275))
action filter_type
action find
entity Q3579
relation P1376
type Q7275
['Q3579', 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ?j WHERE { resource:Q3579 property:P1376 ?j . ?j rdf:type ontology:Q7275 }
Tripoli
action filter_type
action find
entity Tripoli
relation capital of
type state
['Tripoli', 'capital of', {'concept': 'state'}]
SELECT DISTINCT ?j WHERE { resource:Tripoli property:capital_of ?j . ?j rdf:type ontology:state }
[]
state
Q4843701 Q31454 Q44642
SYSTEM
Libyan Arab Jamahiriya, Kingdom of Libya, Federation of Arab Republics
Q4843701 Q31454 Q44642
(Q3579,P1376,c(Q7275))
action filter_type
action find
entity Q3579
relation P1376
type Q7275
[ANSWERS] have Tripoli have their first city
['Q3579', 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ?j WHERE { resource:Q3579 property:P1376 ?j . ?j rdf:type ontology:Q7275 }
Libyan Arab Jamahiriya Kingdom of Libya Federation of Arab Republics
Libyan Arab Jamahiriya, Kingdom of Libya and Federation of Arab Republics have Tripoli have their first city
Libyan Arab Jamahiriya Kingdom of Libya Federation of Arab Republics
action filter_type
action find
entity Tripoli
relation capital of
type state
['Tripoli', 'capital of', {'concept': 'state'}]
SELECT DISTINCT ?j WHERE { resource:Tripoli property:capital_of ?j . ?j rdf:type ontology:state }
[]