Simple Question (Direct)
Simple Question
Q3747873
P57
Q502895
USER
Which person directed For Her Brother's Sake ?
(Q3747873,P57,c(Q502895))
action filter_type
action find
entity Q3747873
relation P57
type Q502895
['Q3747873', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?k WHERE { resource:Q3747873 property:P57 ?k . ?k rdf:type ontology:Q502895 }
For Her Brother's Sake
action filter_type
action find
entity For Her Brother's Sake
relation director
type common name
["For Her Brother's Sake", 'director', {'concept': 'common name'}]
SELECT DISTINCT ?k WHERE { resource:For_Her_Brother's_Sake property:director ?k . ?k rdf:type ontology:common_name }
[]
common name
Q942822
SYSTEM
Thomas H. Ince
Q942822
(Q3747873,P57,c(Q502895))
action filter_type
action find
entity Q3747873
relation P57
type Q502895
[ANSWER] directed For Her Brother's Sake
['Q3747873', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?k WHERE { resource:Q3747873 property:P57 ?k . ?k rdf:type ontology:Q502895 }
Thomas H. Ince
Thomas H. Ince directed For Her Brother's Sake
Thomas H. Ince
action filter_type
action find
entity For Her Brother's Sake
relation director
type common name
["For Her Brother's Sake", 'director', {'concept': 'common name'}]
SELECT DISTINCT ?k WHERE { resource:For_Her_Brother's_Sake property:director ?k . ?k rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q942822
P26
Q502895
USER
Who is married to that one ?
(Q942822,P26,c(Q502895))
action filter_type
action find
entity Q942822
relation P26
type Q502895
['Q942822', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { resource:Q942822 property:P26 ?i . ?i rdf:type ontology:Q502895 }
Thomas H. Ince
action filter_type
action find
entity Thomas H. Ince
relation spouse
type common name
['Thomas H. Ince', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { resource:Thomas_H._Ince property:spouse ?i . ?i rdf:type ontology:common_name }
[]
common name
Q3722999
SYSTEM
Elinor Kershaw
Q3722999
(Q942822,P26,c(Q502895))
action filter_type
action find
entity Q942822
relation P26
type Q502895
[ANSWER] is married to that one
['Q942822', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { resource:Q942822 property:P26 ?i . ?i rdf:type ontology:Q502895 }
Elinor Kershaw
Elinor Kershaw is married to that one
Elinor Kershaw
action filter_type
action find
entity Thomas H. Ince
relation spouse
type common name
['Thomas H. Ince', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { resource:Thomas_H._Ince property:spouse ?i . ?i rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q942822
P106
Q28640
USER
Which professions are the professions of Thomas H. Ince ?
(Q942822,P106,c(Q28640))
action filter_type
action find
entity Q942822
relation P106
type Q28640
['Q942822', 'P106', {'concept': 'Q28640'}]
SELECT DISTINCT ?z WHERE { resource:Q942822 property:P106 ?z . ?z rdf:type ontology:Q28640 }
Thomas H. Ince
action filter_type
action find
entity Thomas H. Ince
relation occupation
type profession
['Thomas H. Ince', 'occupation', {'concept': 'profession'}]
SELECT DISTINCT ?z WHERE { resource:Thomas_H._Ince property:occupation ?z . ?z rdf:type ontology:profession }
[]
profession
Q7042855 Q2526255 Q28389
SYSTEM
film editor, film director, screenwriter
Q7042855 Q2526255 Q3282637 Q28389
(Q942822,P106,c(Q28640))
action filter_type
action find
entity Q942822
relation P106
type Q28640
The professions of Thomas H. Ince are [ANSWERS]
['Q942822', 'P106', {'concept': 'Q28640'}]
SELECT DISTINCT ?z WHERE { resource:Q942822 property:P106 ?z . ?z rdf:type ontology:Q28640 }
film editor film director film producer screenwriter
The professions of Thomas H. Ince are film editor, film director and screenwriter
film editor film director screenwriter
action filter_type
action find
entity Thomas H. Ince
relation occupation
type profession
['Thomas H. Ince', 'occupation', {'concept': 'profession'}]
SELECT DISTINCT ?z WHERE { resource:Thomas_H._Ince property:occupation ?z . ?z rdf:type ontology:profession }
[]
Clarification
Simple Question|Single Entity|Indirect
Q28389
P425
Q223393
USER
Who is associated with the field of occupation that profession ?
(Q28389,P425,c(Q223393))
action filter_type
action find
entity Q28389
relation P425
type Q223393
['Q28389', 'P425', {'concept': 'Q223393'}]
SELECT DISTINCT ?x WHERE { resource:Q28389 property:P425 ?x . ?x rdf:type ontology:Q223393 }
screenwriter
action filter_type
action find
entity screenwriter
relation field of this occupation
type literary genre
['screenwriter', 'field of this occupation', {'concept': 'literary genre'}]
SELECT DISTINCT ?x WHERE { resource:screenwriter property:field_of_this_occupation ?x . ?x rdf:type ontology:literary_genre }
[]
literary genre
Clarification for simple ques.
Q7042855
SYSTEM
Did you mean film editor ?
Q7042855 Q2526255 Q28389
(Q7042855,P425,c(Q223393)) (Q2526255,P425,c(Q223393)) (Q28389,P425,c(Q223393))
[ANSWER]
['Q7042855', 'P425', {'concept': 'Q223393'}] ['Q2526255', 'P425', {'concept': 'Q223393'}] ['Q28389', 'P425', {'concept': 'Q223393'}]
SELECT DISTINCT ?x WHERE { resource:Q28389 property:P425 ?x . ?x rdf:type ontology:Q223393 }
film editor film director screenwriter
Did you mean film editor ?
film editor
['film editor', 'field of this occupation', {'concept': 'literary genre'}] ['film director', 'field of this occupation', {'concept': 'literary genre'}] ['screenwriter', 'field of this occupation', {'concept': 'literary genre'}]
SELECT DISTINCT ?x WHERE { resource:screenwriter property:field_of_this_occupation ?x . ?x rdf:type ontology:literary_genre }
[]
Simple Question (Coreferenced)
USER
No, I meant screenwriter. Could you tell me the answer for that?
(Q28389,P425,c(Q223393))
Q28389
['Q28389', 'P425', {'concept': 'Q223393'}]
['screenwriter', 'field of this occupation', {'concept': 'literary genre'}]
[]
Q103076
SYSTEM
screenplay
Q103076
(Q28389,P425,c(Q223393))
action filter_type
action find
entity Q28389
relation P425
type Q223393
The [ANSWER] is associated with the field of occupation that profession
['Q28389', 'P425', {'concept': 'Q223393'}]
SELECT DISTINCT ?x WHERE { resource:Q28389 property:P425 ?x . ?x rdf:type ontology:Q223393 }
screenplay
The screenplay is associated with the field of occupation that profession
screenplay
action filter_type
action find
entity screenwriter
relation field of this occupation
type literary genre
['screenwriter', 'field of this occupation', {'concept': 'literary genre'}]
SELECT DISTINCT ?x WHERE { resource:screenwriter property:field_of_this_occupation ?x . ?x rdf:type ontology:literary_genre }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q942822
P1412
Q34770
USER
Which language is Thomas H. Ince capable of writing ?
(Q942822,P1412,c(Q34770))
action filter_type
action find
entity Q942822
relation P1412
type Q34770
['Q942822', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?k WHERE { resource:Q942822 property:P1412 ?k . ?k rdf:type ontology:Q34770 }
Thomas H. Ince
action filter_type
action find
entity Thomas H. Ince
relation languages spoken, written or signed
type language
['Thomas H. Ince', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?k WHERE { resource:Thomas_H._Ince property:languages_spoken,_written_or_signed ?k . ?k rdf:type ontology:language }
[]
language
Q1860
SYSTEM
English
Q1860
(Q942822,P1412,c(Q34770))
action filter_type
action find
entity Q942822
relation P1412
type Q34770
[ANSWER] is Thomas H. Ince capable of writing
['Q942822', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?k WHERE { resource:Q942822 property:P1412 ?k . ?k rdf:type ontology:Q34770 }
English
English is Thomas H. Ince capable of writing
English
action filter_type
action find
entity Thomas H. Ince
relation languages spoken, written or signed
type language
['Thomas H. Ince', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?k WHERE { resource:Thomas_H._Ince property:languages_spoken,_written_or_signed ?k . ?k rdf:type ontology:language }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1860
P361
Q5962346
USER
Which classification schemes are that language a part of ?
(Q1860,P361,c(Q5962346))
action filter_type
action find
entity Q1860
relation P361
type Q5962346
['Q1860', 'P361', {'concept': 'Q5962346'}]
SELECT DISTINCT ?j WHERE { resource:Q1860 property:P361 ?j . ?j rdf:type ontology:Q5962346 }
English
action filter_type
action find
entity English
relation part of
type classification scheme
['English', 'part of', {'concept': 'classification scheme'}]
SELECT DISTINCT ?j WHERE { resource:English property:part_of ?j . ?j rdf:type ontology:classification_scheme }
[]
classification scheme
Q1346342 Q5329170
SYSTEM
Anglic languages, Anglo-Frisian languages
Q1346342 Q5329170
(Q1860,P361,c(Q5962346))
action filter_type
action find
entity Q1860
relation P361
type Q5962346
[ANSWERS] are that language a part of
['Q1860', 'P361', {'concept': 'Q5962346'}]
SELECT DISTINCT ?j WHERE { resource:Q1860 property:P361 ?j . ?j rdf:type ontology:Q5962346 }
Anglic languages Anglo-Frisian languages
Anglic languages and Anglo-Frisian languages are that language a part of
Anglic languages Anglo-Frisian languages
action filter_type
action find
entity English
relation part of
type classification scheme
['English', 'part of', {'concept': 'classification scheme'}]
SELECT DISTINCT ?j WHERE { resource:English property:part_of ?j . ?j rdf:type ontology:classification_scheme }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q1860
P361
Q34770
USER
Are English a part of those classification schemes ?
(Q1860,P361,Q1346342) (Q1860,P361,Q5329170)
action is_in
entity prev_answer
action find
entity Q1860
relation P361
['Q1860', 'P361', 'Q1346342'] ['Q1860', 'P361', 'Q5329170']
ASK WHERE { resource:Q1860 property:P361 ?o . VALUES ( ?o ) { ( resource:Q1346342 ) ( resource:Q5329170 ) } }
English
action is_in
entity prev_answer
action find
entity English
relation part of
['English', 'part of', 'Anglic languages'] ['English', 'part of', 'Anglo-Frisian languages']
ASK WHERE { resource:English property:part_of ?o . VALUES ( ?o ) { ( resource:Anglic_languages ) ( resource:Anglo-Frisian_languages ) } }
[]
language
SYSTEM
YES
(Q1860,P361,Q1346342) (Q1860,P361,Q5329170)
action is_in
entity prev_answer
action find
entity Q1860
relation P361
[ANSWER]
['Q1860', 'P361', 'Q1346342'] ['Q1860', 'P361', 'Q5329170']
ASK WHERE { resource:Q1860 property:P361 ?o . VALUES ( ?o ) { ( resource:Q1346342 ) ( resource:Q5329170 ) } }
Yes
action is_in
entity prev_answer
action find
entity English
relation part of
['English', 'part of', 'Anglic languages'] ['English', 'part of', 'Anglo-Frisian languages']
ASK WHERE { resource:English property:part_of ?o . VALUES ( ?o ) { ( resource:Anglic_languages ) ( resource:Anglo-Frisian_languages ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q82955
P39
Q502895
USER
Which person was appointed for the position of politician ?
(c(Q502895),P39,Q82955)
action filter_type
action find_reverse
entity Q82955
relation P39
type Q502895
[{'concept': 'Q502895'}, 'P39', 'Q82955']
SELECT DISTINCT ?u WHERE { ?u property:P39 resource:Q82955 . ?u rdf:type ontology:Q502895 }
politician
action filter_type
action find_reverse
entity politician
relation position held
type common name
[{'concept': 'common name'}, 'position held', 'politician']
SELECT DISTINCT ?u WHERE { ?u property:position_held resource:politician . ?u rdf:type ontology:common_name }
[]
common name
Q26215129
SYSTEM
Morteza Azari
Q26215129
(c(Q502895),P39,Q82955)
action filter_type
action find_reverse
entity Q82955
relation P39
type Q502895
[ANSWER] was appointed for the position of politician
[{'concept': 'Q502895'}, 'P39', 'Q82955']
SELECT DISTINCT ?u WHERE { ?u property:P39 resource:Q82955 . ?u rdf:type ontology:Q502895 }
Morteza Azari
Morteza Azari was appointed for the position of politician
Morteza Azari
action filter_type
action find_reverse
entity politician
relation position held
type common name
[{'concept': 'common name'}, 'position held', 'politician']
SELECT DISTINCT ?u WHERE { ?u property:position_held resource:politician . ?u rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q26215129
P19
Q56061
USER
Where was that person born ?
(Q26215129,P19,c(Q56061))
action filter_type
action find
entity Q26215129
relation P19
type Q56061
['Q26215129', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?z WHERE { resource:Q26215129 property:P19 ?z . ?z rdf:type ontology:Q56061 }
Morteza Azari
action filter_type
action find
entity Morteza Azari
relation place of birth
type administrative territorial entity
['Morteza Azari', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { resource:Morteza_Azari property:place_of_birth ?z . ?z rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q121157
SYSTEM
Mashhad
Q121157
(Q26215129,P19,c(Q56061))
action filter_type
action find
entity Q26215129
relation P19
type Q56061
That person was born in [ANSWER]
['Q26215129', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?z WHERE { resource:Q26215129 property:P19 ?z . ?z rdf:type ontology:Q56061 }
Mashhad
That person was born in Mashhad
Mashhad
action filter_type
action find
entity Morteza Azari
relation place of birth
type administrative territorial entity
['Morteza Azari', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { resource:Morteza_Azari property:place_of_birth ?z . ?z rdf:type ontology:administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q13409231
P355
Q28640 Q43229 Q28640
USER
How many professions are an auxiliary of approximately the same number of organizations and professions as Atari, Inc. ?
(c(Q43229)|c(Q28640),P355,c(Q28640))
action count
action approx
action union
action find_reverse_tuple_counts
relation P355
type Q28640
type Q43229
action find_reverse_tuple_counts
relation P355
type Q28640
type Q28640
action count
action filter_multi_types
action find_reverse
entity Q13409231
relation P355
type Q43229
type Q28640
[[{'concept': 'Q43229'}, {'concept': 'Q28640'}], 'P355', {'concept': 'Q28640'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?s ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?m ) AS ?x ) WHERE { { ?m property:P355 ?d . ?d rdf:type ontology:Q28640 . ?m rdf:type ontology:Q43229 } UNION { ?m property:P355 ?d . ?d rdf:type ontology:Q28640 . ?m rdf:type ontology:Q28640 } } GROUP BY ?d } . FILTER ( ?x = ?h ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?h ) WHERE { ?l property:P355 resource:Q13409231 . { { ?l rdf:type ontology:Q43229 } UNION { ?l rdf:type ontology:Q28640 } } } } }
Atari, Inc.
action count
action approx
action union
action find_reverse_tuple_counts
relation subsidiary
type profession
type organization
action find_reverse_tuple_counts
relation subsidiary
type profession
type profession
action count
action filter_multi_types
action find_reverse
entity Atari, Inc.
relation subsidiary
type organization
type profession
[[{'concept': 'organization'}, {'concept': 'profession'}], 'subsidiary', {'concept': 'profession'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?s ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?m ) AS ?x ) WHERE { { ?m property:subsidiary ?d . ?d rdf:type ontology:profession . ?m rdf:type ontology:organization } UNION { ?m property:subsidiary ?d . ?d rdf:type ontology:profession . ?m rdf:type ontology:profession } } GROUP BY ?d } . FILTER ( ?x = ?h ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?h ) WHERE { ?l property:subsidiary resource:Atari,_Inc. . { { ?l rdf:type ontology:organization } UNION { ?l rdf:type ontology:profession } } } } }
[]
profession organization profession
SYSTEM
26
Q3281900 Q1040450 Q18414205 Q15240959 Q6423274 Q2076545 Q18388687 Q3456271 Q611508 Q1060165 Q26222 Q123018 Q1053684 Q2660350 Q739711 Q13409231 Q2510684 Q94937 Q4039000 Q1930918 Q18594 Q923047 Q860580 Q8043371 Q959672 Q1172164
(c(Q43229)|c(Q28640),P355,c(Q28640))
action count
action approx
action union
action find_reverse_tuple_counts
relation P355
type Q28640
type Q43229
action find_reverse_tuple_counts
relation P355
type Q28640
type Q28640
action count
action filter_multi_types
action find_reverse
entity Q13409231
relation P355
type Q43229
type Q28640
[ANSWER]
[[{'concept': 'Q43229'}, {'concept': 'Q28640'}], 'P355', {'concept': 'Q28640'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?s ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?m ) AS ?x ) WHERE { { ?m property:P355 ?d . ?d rdf:type ontology:Q28640 . ?m rdf:type ontology:Q43229 } UNION { ?m property:P355 ?d . ?d rdf:type ontology:Q28640 . ?m rdf:type ontology:Q28640 } } GROUP BY ?d } . FILTER ( ?x = ?h ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?h ) WHERE { ?l property:P355 resource:Q13409231 . { { ?l rdf:type ontology:Q43229 } UNION { ?l rdf:type ontology:Q28640 } } } } }
Malfador Machinations Guerrilla Cambridge Future Games Of London Team Bloodlust Knowledge Adventure Day 1 Studios Lift London BigWorld Creative Assembly Riot Games Gas Powered Games Nintendo Software Technology Polyphony Digital Havok Epic Games Atari, Inc. Zynga Dallas 2K Games Freeverse U.S. Gold Sony Interactive Entertainment 989 Studios Tencent Holdings Launchworks Daybreak Game Company CD Projekt RED
26
action count
action approx
action union
action find_reverse_tuple_counts
relation subsidiary
type profession
type organization
action find_reverse_tuple_counts
relation subsidiary
type profession
type profession
action count
action filter_multi_types
action find_reverse
entity Atari, Inc.
relation subsidiary
type organization
type profession
[[{'concept': 'organization'}, {'concept': 'profession'}], 'subsidiary', {'concept': 'profession'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?s ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?m ) AS ?x ) WHERE { { ?m property:subsidiary ?d . ?d rdf:type ontology:profession . ?m rdf:type ontology:organization } UNION { ?m property:subsidiary ?d . ?d rdf:type ontology:profession . ?m rdf:type ontology:profession } } GROUP BY ?d } . FILTER ( ?x = ?h ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?h ) WHERE { ?l property:subsidiary resource:Atari,_Inc. . { { ?l rdf:type ontology:organization } UNION { ?l rdf:type ontology:profession } } } } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q121157
P190
Q515 Q56061
USER
How many cities or administrative territories are the sister cities of Mashhad ?
(Q121157,P190,c(Q515)) (Q121157,P190,c(Q56061))
action count
action union
action filter_type
action find
entity Q121157
relation P190
type Q515
action filter_type
action find
entity Q121157
relation P190
type Q56061
['Q121157', 'P190', {'concept': 'Q515'}] ['Q121157', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { VALUES ( ?v ) { ( ontology:Q515 ) ( ontology:Q56061 ) } . ?z rdf:type ?v }
Mashhad
action count
action union
action filter_type
action find
entity Mashhad
relation sister city
type city
action filter_type
action find
entity Mashhad
relation sister city
type administrative territorial entity
['Mashhad', 'sister city', {'concept': 'city'}] ['Mashhad', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { VALUES ( ?v ) { ( ontology:city ) ( ontology:administrative_territorial_entity ) } . ?z rdf:type ?v }
[]
city administrative territorial entity
SYSTEM
9
Q490 Q14314 Q130469 Q43301 Q1726 Q1865 Q16959 Q11462 Q2028
(Q121157,P190,c(Q515)) (Q121157,P190,c(Q56061))
action count
action union
action filter_type
action find
entity Q121157
relation P190
type Q515
action filter_type
action find
entity Q121157
relation P190
type Q56061
[ANSWER]
['Q121157', 'P190', {'concept': 'Q515'}] ['Q121157', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { VALUES ( ?v ) { ( ontology:Q515 ) ( ontology:Q56061 ) } . ?z rdf:type ?v }
Milan Santiago de Compostela Mazar-i-Sharif Fresno Munich Kuala Lumpur Ürümqi Surabaya Verona
9
action count
action union
action filter_type
action find
entity Mashhad
relation sister city
type city
action filter_type
action find
entity Mashhad
relation sister city
type administrative territorial entity
['Mashhad', 'sister city', {'concept': 'city'}] ['Mashhad', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { VALUES ( ?v ) { ( ontology:city ) ( ontology:administrative_territorial_entity ) } . ?z rdf:type ?v }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q121157
P190
Q56061 Q515
USER
How many administrative territories and cities are twin cities of Mashhad ?
(Q121157,P190,c(Q56061)) (Q121157,P190,c(Q515))
action count
action union
action filter_type
action find
entity Q121157
relation P190
type Q56061
action filter_type
action find
entity Q121157
relation P190
type Q515
['Q121157', 'P190', {'concept': 'Q56061'}] ['Q121157', 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?u ) WHERE { { ?b rdf:type ontology:Q56061 . resource:Q121157 property:P190 ?b } UNION { resource:Q121157 property:P190 ?b . ?b rdf:type ontology:Q515 } }
Mashhad
action count
action union
action filter_type
action find
entity Mashhad
relation sister city
type administrative territorial entity
action filter_type
action find
entity Mashhad
relation sister city
type city
['Mashhad', 'sister city', {'concept': 'administrative territorial entity'}] ['Mashhad', 'sister city', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?u ) WHERE { { ?b rdf:type ontology:administrative_territorial_entity . resource:Mashhad property:sister_city ?b } UNION { resource:Mashhad property:sister_city ?b . ?b rdf:type ontology:city } }
[]
administrative territorial entity city
SYSTEM
6 administrative territories and 3 cities
Q490 Q1726 Q1865 Q16959 Q14314 Q130469 Q11462 Q2028 Q43301
(Q121157,P190,c(Q56061)) (Q121157,P190,c(Q515))
action count
action union
action filter_type
action find
entity Q121157
relation P190
type Q56061
action filter_type
action find
entity Q121157
relation P190
type Q515
[ANSWER]
['Q121157', 'P190', {'concept': 'Q56061'}] ['Q121157', 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?u ) WHERE { { ?b rdf:type ontology:Q56061 . resource:Q121157 property:P190 ?b } UNION { resource:Q121157 property:P190 ?b . ?b rdf:type ontology:Q515 } }
Milan Munich Kuala Lumpur Ürümqi Santiago de Compostela Mazar-i-Sharif Surabaya Verona Fresno
6 administrative territories and 3 cities
action count
action union
action filter_type
action find
entity Mashhad
relation sister city
type administrative territorial entity
action filter_type
action find
entity Mashhad
relation sister city
type city
['Mashhad', 'sister city', {'concept': 'administrative territorial entity'}] ['Mashhad', 'sister city', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?u ) WHERE { { ?b rdf:type ontology:administrative_territorial_entity . resource:Mashhad property:sister_city ?b } UNION { resource:Mashhad property:sister_city ?b . ?b rdf:type ontology:city } }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581097 Q121157
P19 P21
Q502895
USER
Which people have location of birth at Mashhad and are a male ?
AND((c(Q502895),P19,Q121157), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q121157
relation P19
action find_reverse
entity Q6581097
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P19', 'Q121157'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?y WHERE { ?y property:P19 resource:Q121157 . ?y property:P21 resource:Q6581097 . ?y rdf:type ontology:Q502895 }
male Mashhad
action filter_type
action intersection
action find_reverse
entity Mashhad
relation place of birth
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'place of birth', 'Mashhad'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?y WHERE { ?y property:place_of_birth resource:Mashhad . ?y property:gender resource:male . ?y rdf:type ontology:common_name }
[]
common name
Q931221 Q876117 Q4724846 Q3126405 Q12240497 Q6559002 Q7398273 Q2469870 Q20111181 Q443298
SYSTEM
Some of them are Rasoul Khadem, Manouchehr Eghbal, Ali Hanteh, Hamed Behdad, Mohammad Reza Tabasi, Mohammad Sadeghi, Saeid Chahjouei, Heshmat Mohajerani, Mehdi Azizian, Mohammad-Ali Abtahi
Q6370618 Q4405822 Q20987976 Q8991528 Q6165109 Q6165100 Q3194452 Q5938060 Q1672348 Q5644562 Q23043488 Q12240497 Q6403666 Q16045297 Q5811471 Q7319770 Q5947347 Q6509044 Q4724846 Q3128137 Q20033198 Q6783864 Q16050902 Q1942684 Q20987986 Q10860755 Q2469870 Q5908978 Q4066922 Q7319784 Q26215129 Q1907283 Q10844782 Q5710320 Q5955014 Q6892124 Q6809325 Q16050651 Q5556898 Q4695385 Q6380990 Q6892329 Q723366 Q17279102 Q20111181 Q16048394 Q10514624 Q18977608 Q1368462 Q22694333 Q2919350 Q5960596 Q6892159 Q5922231 Q4724494 Q5679799 Q4668247 Q6892017 Q21065001 Q5955680 Q5957308 Q5909051 Q6914583 Q5644638 Q931221 Q221872 Q337489 Q6751850 Q22280171 Q5555819 Q5937901 Q7319742 Q5956500 Q7398273 Q6734370 Q5956699 Q21451060 Q6734375 Q18146454 Q594204 Q17811841 Q16050695 Q26217979 Q21285301 Q5725350 Q24007426 Q6733667 Q2902597 Q10547197 Q16053506 Q16052596 Q10854238 Q21067228 Q552889 Q4695247 Q15522428 Q4498678 Q876117 Q5908995 Q6165098 Q10498643 Q2646718 Q1549464 Q4663738 Q3339641 Q18204991 Q18358361 Q472345 Q5700469 Q5948292 Q2901240 Q443298 Q6809363 Q1588582 Q5956739 Q3428926 Q3126405 Q4054430 Q5959985 Q6123152 Q57336 Q2827433 Q4117985 Q1238247 Q5873666 Q24258766 Q4726877 Q16046480 Q21872372 Q167283 Q547594 Q1343402 Q19665062 Q6737827 Q1580049 Q983182 Q6559002 Q18062127 Q5956929 Q21474183 Q1393466 Q22280439 Q5949410 Q5913033 Q16053485 Q725923 Q7908626 Q5952352 Q2119310 Q472086 Q7459025 Q7459026 Q6892517 Q5950148 Q27467049 Q20644876 Q635059 Q5395794 Q5644618
AND((c(Q502895),P19,Q121157), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q121157
relation P19
action find_reverse
entity Q6581097
relation P21
type Q502895
[ANSWERS] have location of birth at Mashhad and are a male
{'AND': [[{'concept': 'Q502895'}, 'P19', 'Q121157'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?y WHERE { ?y property:P19 resource:Q121157 . ?y property:P21 resource:Q6581097 . ?y rdf:type ontology:Q502895 }
Karim Masroor Mohammad Salimi Amir Hossein Sedghi Saleh Foroutan Javad Shamaqdari Javad Mahjoub Kazem Sami Ruhollah Ahmadzadeh Iraj Janatie Ataie Hamid Ahmadi Mohammad Nasseri Mohammad Reza Tabasi Kia Zolgharnain Amin Amini Mohammad Pejman Reza Nasehi Seyed Ebrahim Raeisi Mehdi Mohaghegh Ali Hanteh Hassan Ferechtian Arash Shahrokhtash Masoud Ahmadi Moghaddasi Salman Khan Ustajlu Mohammad Mokhtari Reza Sharbati Jalal Matini Heshmat Mohajerani Hossein Alavi Gholamreza Ansari Reza Sahebi Morteza Azari Masoud Haji Akhondzadeh Hamid Reza Sadr Muhammad Bozorgnia Parviz Dariush Mohammad Khadem Mehdi Jami Hassan Mosayyebi Gholamreza Rouhani Ahmad Karimi-Hakkak Kazem Akhavan Mohammad Reza Khorsandnia Navid Negahban Esmail Abbasian Mehdi Azizian Ali Loghmani Javad Arianmanesh Afshin Ghaffarian Fariborz Sahba Seraj Mirdamady Mojtaba Khamenei Ali Akbar Alemzadeh Mohammad Mahdi Faghihi Sultan Ali Mashhadi Ali-Akbar Fayyaz Hassan Rahimpour Azghadi Abolfazl Attar Mohammad Hassan Rajabzadeh Mohsen Haji Hassani kargar Muhammad Reza Saeedi Mohammad Shiri Hossein Hooshyar Morteza Bakhtiari Hamid Reza Mobarrez Rasoul Khadem Hamid Shiri Ali al-Sistani Mansour Nariman Milad Safaei Ghasem Dehnavi Ebrahim Vahidzadeh Reza Haghighi Mojtaba Kashani Saeid Chahjouei Mahmoud Kaveh Homayun Mohammad Hossein Eyn Asfhar Mahmoud Khayami Mohammad Daneshvar Hamed Afagh Hossein Nuri Hassan Norouzi Arya Nasimi Shad Hamid Shandizi Moghadam Sirous Sangchouli Mel ameli Mahdi Bemani Naeini Hamid Reza Ebrahimi Hossein Tayyebi Seyed Javad Khamenei Mohammad Taghi Paksima Abdi Behravanfar Hossein Zamehran Marshall Manesh Ahmad Alamolhoda Amir Hosseini Majid Khodaei Manouchehr Eghbal Hossein Badamaki Javad Jalali Hamidreza Zohani Ali Maloumat Rafi Pitts Abbas Chamanyan Seyed Hassan Firouzabadi Ali Ravaghi Siavash Yazdani Khodadad Azizi Farhad Zarif Mehdi Sabbaghzadeh Mordechai Zar Mohammad-Ali Abtahi Mehdi Sabeti Hassan Tabataba'i-Qomi Hasan Amid Reza Attaran Hamed Behdad ʿAbd al‐Wājid Hashem Attar Jahangir Asgari Ali Khamenei Ahmad Ahmadi Taqi Tabatabaei Qomi Mohammad-Reza Shajarian Saed Soheili Mahdi Javid Alireza Jafarzadeh Reza Safaei Moein Abbasian Timur Shah Durrani Kourosh Khani Reza Enayati Hossein Mehraban Majid Hosseinipour Mehdi Akhavan-Sales Ehsan Jami Mohammad Sadeghi Hojjat Haghverdi Keivan Saket Behrouz Afshar Mohammad-Taqi Bahar Saeed Vasei Mohammad Aghebati Ahmad Mashhadi Mohammad-Ali Mahdavi Alireza Vahedi Nikbakht Vahid Asgari Mohammad Ali Ansari Reza Ghoochannejhad Amir Reza Khadem Seyed Kazem Ghiyassian Seyed Mehdi Qiyassi Mohammad Va'ez Abaee-Khorasani Sadegh Vaez-Zadeh Abbas Salehi Mohammad Reza Mohajeri Saeed Jalili Ershad Yousefi Hamid Motebassem
Rasoul Khadem, Manouchehr Eghbal, Ali Hanteh, Hamed Behdad, Mohammad Reza Tabasi, Mohammad Sadeghi, Saeid Chahjouei, Heshmat Mohajerani, Mehdi Azizian and Mohammad-Ali Abtahi have location of birth at Mashhad and are a male
Rasoul Khadem Manouchehr Eghbal Ali Hanteh Hamed Behdad Mohammad Reza Tabasi Mohammad Sadeghi Saeid Chahjouei Heshmat Mohajerani Mehdi Azizian Mohammad-Ali Abtahi
action filter_type
action intersection
action find_reverse
entity Mashhad
relation place of birth
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'place of birth', 'Mashhad'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?y WHERE { ?y property:place_of_birth resource:Mashhad . ?y property:gender resource:male . ?y rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q121157
P190
Q56061 Q515
USER
How many administrative territories and cities are the sister cities of Mashhad ?
(Q121157,P190,c(Q56061)) (Q121157,P190,c(Q515))
action count
action union
action filter_type
action find
entity Q121157
relation P190
type Q56061
action filter_type
action find
entity Q121157
relation P190
type Q515
['Q121157', 'P190', {'concept': 'Q56061'}] ['Q121157', 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?p ) WHERE { { resource:Q121157 property:P190 ?v . ?v rdf:type ontology:Q515 } UNION { resource:Q121157 property:P190 ?v . ?v rdf:type ontology:Q56061 } }
Mashhad
action count
action union
action filter_type
action find
entity Mashhad
relation sister city
type administrative territorial entity
action filter_type
action find
entity Mashhad
relation sister city
type city
['Mashhad', 'sister city', {'concept': 'administrative territorial entity'}] ['Mashhad', 'sister city', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?p ) WHERE { { resource:Mashhad property:sister_city ?v . ?v rdf:type ontology:city } UNION { resource:Mashhad property:sister_city ?v . ?v rdf:type ontology:administrative_territorial_entity } }
[]
administrative territorial entity city
SYSTEM
6 administrative territories and 3 cities
Q490 Q1726 Q1865 Q16959 Q14314 Q130469 Q11462 Q2028 Q43301
(Q121157,P190,c(Q56061)) (Q121157,P190,c(Q515))
action count
action union
action filter_type
action find
entity Q121157
relation P190
type Q56061
action filter_type
action find
entity Q121157
relation P190
type Q515
[ANSWER]
['Q121157', 'P190', {'concept': 'Q56061'}] ['Q121157', 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?p ) WHERE { { resource:Q121157 property:P190 ?v . ?v rdf:type ontology:Q515 } UNION { resource:Q121157 property:P190 ?v . ?v rdf:type ontology:Q56061 } }
Milan Munich Kuala Lumpur Ürümqi Santiago de Compostela Mazar-i-Sharif Surabaya Verona Fresno
6 administrative territories and 3 cities
action count
action union
action filter_type
action find
entity Mashhad
relation sister city
type administrative territorial entity
action filter_type
action find
entity Mashhad
relation sister city
type city
['Mashhad', 'sister city', {'concept': 'administrative territorial entity'}] ['Mashhad', 'sister city', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?p ) WHERE { { resource:Mashhad property:sister_city ?v . ?v rdf:type ontology:city } UNION { resource:Mashhad property:sister_city ?v . ?v rdf:type ontology:administrative_territorial_entity } }
[]