Simple Question (Direct)
Simple Question
Q1086512
P26
Q502895
USER
Who is the spouse of Christopher Bailey ?
(Q1086512,P26,c(Q502895))
action filter_type
action find
entity Q1086512
relation P26
type Q502895
['Q1086512', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { resource:Q1086512 property:P26 ?j . ?j rdf:type ontology:Q502895 }
Christopher Bailey
action filter_type
action find
entity Christopher Bailey
relation spouse
type common name
['Christopher Bailey', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { resource:Christopher_Bailey property:spouse ?j . ?j rdf:type ontology:common_name }
[]
common name
Q1333202
SYSTEM
Simon Woods
Q1333202
(Q1086512,P26,c(Q502895))
action filter_type
action find
entity Q1086512
relation P26
type Q502895
The spouse of Christopher Bailey is named [ANSWER]
['Q1086512', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { resource:Q1086512 property:P26 ?j . ?j rdf:type ontology:Q502895 }
Simon Woods
The spouse of Christopher Bailey is named Simon Woods
Simon Woods
action filter_type
action find
entity Christopher Bailey
relation spouse
type common name
['Christopher Bailey', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { resource:Christopher_Bailey property:spouse ?j . ?j rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1333202
P69
Q1244442
USER
Which school building is that person an alumni of ?
(Q1333202,P69,c(Q1244442))
action filter_type
action find
entity Q1333202
relation P69
type Q1244442
['Q1333202', 'P69', {'concept': 'Q1244442'}]
SELECT DISTINCT ?p WHERE { resource:Q1333202 property:P69 ?p . ?p rdf:type ontology:Q1244442 }
Simon Woods
action filter_type
action find
entity Simon Woods
relation educated at
type school building
['Simon Woods', 'educated at', {'concept': 'school building'}]
SELECT DISTINCT ?p WHERE { resource:Simon_Woods property:educated_at ?p . ?p rdf:type ontology:school_building }
[]
school building
Q81162
SYSTEM
Magdalen College
Q81162
(Q1333202,P69,c(Q1244442))
action filter_type
action find
entity Q1333202
relation P69
type Q1244442
[ANSWER] is that person an alumni of
['Q1333202', 'P69', {'concept': 'Q1244442'}]
SELECT DISTINCT ?p WHERE { resource:Q1333202 property:P69 ?p . ?p rdf:type ontology:Q1244442 }
Magdalen College
Magdalen College is that person an alumni of
Magdalen College
action filter_type
action find
entity Simon Woods
relation educated at
type school building
['Simon Woods', 'educated at', {'concept': 'school building'}]
SELECT DISTINCT ?p WHERE { resource:Simon_Woods property:educated_at ?p . ?p rdf:type ontology:school_building }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1333202
P161
Q838948
USER
Which works of art have Simon Woods as actor ?
(c(Q838948),P161,Q1333202)
action filter_type
action find_reverse
entity Q1333202
relation P161
type Q838948
[{'concept': 'Q838948'}, 'P161', 'Q1333202']
SELECT DISTINCT ?l WHERE { ?l property:P161 resource:Q1333202 . ?l rdf:type ontology:Q838948 }
Simon Woods
action filter_type
action find_reverse
entity Simon Woods
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'Simon Woods']
SELECT DISTINCT ?l WHERE { ?l property:cast_member resource:Simon_Woods . ?l rdf:type ontology:work_of_art }
[]
work of art
Q270385 Q532064 Q1074032
SYSTEM
Pride & Prejudice, Angel, Penelope
Q1074032 Q532064 Q3503942 Q926238 Q270385
(c(Q838948),P161,Q1333202)
action filter_type
action find_reverse
entity Q1333202
relation P161
type Q838948
[ANSWERS] have Simon Woods as actor
[{'concept': 'Q838948'}, 'P161', 'Q1333202']
SELECT DISTINCT ?l WHERE { ?l property:P161 resource:Q1333202 . ?l rdf:type ontology:Q838948 }
Penelope Angel Sunny and the Elephant Starter for 10 Pride & Prejudice
Pride & Prejudice, Angel and Penelope have Simon Woods as actor
Pride & Prejudice Angel Penelope
action filter_type
action find_reverse
entity Simon Woods
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'Simon Woods']
SELECT DISTINCT ?l WHERE { ?l property:cast_member resource:Simon_Woods . ?l rdf:type ontology:work_of_art }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q270385
P86
Q502895
USER
Who did the compostion for Pride & Prejudice ?
(Q270385,P86,c(Q502895))
action filter_type
action find
entity Q270385
relation P86
type Q502895
['Q270385', 'P86', {'concept': 'Q502895'}]
SELECT DISTINCT ?u WHERE { resource:Q270385 property:P86 ?u . ?u rdf:type ontology:Q502895 }
Pride & Prejudice
action filter_type
action find
entity Pride & Prejudice
relation composer
type common name
['Pride & Prejudice', 'composer', {'concept': 'common name'}]
SELECT DISTINCT ?u WHERE { resource:Pride_&_Prejudice property:composer ?u . ?u rdf:type ontology:common_name }
[]
common name
Q360399
SYSTEM
Dario Marianelli
Q360399
(Q270385,P86,c(Q502895))
action filter_type
action find
entity Q270385
relation P86
type Q502895
[ANSWER] did the compostion for Pride & Prejudice
['Q270385', 'P86', {'concept': 'Q502895'}]
SELECT DISTINCT ?u WHERE { resource:Q270385 property:P86 ?u . ?u rdf:type ontology:Q502895 }
Dario Marianelli
Dario Marianelli did the compostion for Pride & Prejudice
Dario Marianelli
action filter_type
action find
entity Pride & Prejudice
relation composer
type common name
['Pride & Prejudice', 'composer', {'concept': 'common name'}]
SELECT DISTINCT ?u WHERE { resource:Pride_&_Prejudice property:composer ?u . ?u rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q270385
P344
Q502895
USER
Who is appointed as the cinematographer of Pride & Prejudice ?
(Q270385,P344,c(Q502895))
action filter_type
action find
entity Q270385
relation P344
type Q502895
['Q270385', 'P344', {'concept': 'Q502895'}]
SELECT DISTINCT ?w WHERE { resource:Q270385 property:P344 ?w . ?w rdf:type ontology:Q502895 }
Pride & Prejudice
action filter_type
action find
entity Pride & Prejudice
relation director of photography
type common name
['Pride & Prejudice', 'director of photography', {'concept': 'common name'}]
SELECT DISTINCT ?w WHERE { resource:Pride_&_Prejudice property:director_of_photography ?w . ?w rdf:type ontology:common_name }
[]
common name
Q7362117
SYSTEM
Roman Osin
Q7362117
(Q270385,P344,c(Q502895))
action filter_type
action find
entity Q270385
relation P344
type Q502895
[ANSWER] is appointed as the cinematographer of Pride & Prejudice
['Q270385', 'P344', {'concept': 'Q502895'}]
SELECT DISTINCT ?w WHERE { resource:Q270385 property:P344 ?w . ?w rdf:type ontology:Q502895 }
Roman Osin
Roman Osin is appointed as the cinematographer of Pride & Prejudice
Roman Osin
action filter_type
action find
entity Pride & Prejudice
relation director of photography
type common name
['Pride & Prejudice', 'director of photography', {'concept': 'common name'}]
SELECT DISTINCT ?w WHERE { resource:Pride_&_Prejudice property:director_of_photography ?w . ?w rdf:type ontology:common_name }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
Which musical instruments are played by approximately 136 people ?
(c(Q502895),P1303,c(Q34379))
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 136
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?c ) AS ?t ) WHERE { ?c property:P1303 ?w . ?w rdf:type ontology:Q34379 . ?c rdf:type ontology:Q502895 } GROUP BY ?w } . FILTER ( ?t = 136 ) }
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 136
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?c ) AS ?t ) WHERE { ?c property:instrument ?w . ?w rdf:type ontology:musical_instrument . ?c rdf:type ontology:common_name } GROUP BY ?w } . FILTER ( ?t = 136 ) }
[]
musical instrument common name
Q1178361 Q81982 Q1759986
SYSTEM
davul, harpsichord, Wurlitzer electric piano
Q80284 Q46185 Q201129 Q424017 Q890073 Q80019 Q1178361 Q2563510 Q604538 Q2660670 Q39777 Q3574843 Q678090 Q81982 Q182718 Q490054 Q873588 Q593995 Q1327500 Q206987 Q1879664 Q189737 Q1759986 Q1798603 Q1099153 Q120585 Q713298 Q8371 Q1024685 Q213461 Q3382191 Q816793 Q862501 Q213100 Q244976 Q537750 Q626035 Q1179017 Q742180 Q320341 Q1300012 Q748455 Q669370 Q290951 Q220971 Q178933 Q16875637 Q790468 Q1129422 Q379248 Q726306 Q173453 Q483994 Q744831 Q963150 Q16155191 Q644440 Q1343007 Q11404 Q497224 Q3623688
(c(Q502895),P1303,c(Q34379))
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 136
[ANSWERS] are played by approximately 136 people
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?c ) AS ?t ) WHERE { ?c property:P1303 ?w . ?w rdf:type ontology:Q34379 . ?c rdf:type ontology:Q502895 } GROUP BY ?w } . FILTER ( ?t = 136 ) }
viola bass guitar lyre acoustic bass guitar Body percussion double bass davul steel-string acoustic guitar Temple block Irish bouzouki maraca tonbak Twelve-string guitar harpsichord Nyckelharpa Ondioline Jinghu player piano electronic musical instrument vibraphone spoon timpani Wurlitzer electric piano string instrument clavinet Tsuzumi geomungo cello cabasa harmonium upright piano Bendir ondes Martenot tabla bodhrán Djembe glockenspiel Daxophone viola d'amore celesta toy piano cajón gusle Kamancheh marimba Hardanger fiddle transverse flute baritone horn morin khuur Timbales erhu wind instrument Kazoo Mridangam tenor guitar Saraswati veena Lap steel guitar electronic keyboard drum Kayamb Paraguayan harp
Davul, harpsichord and Wurlitzer electric piano are played by approximately 136 people
davul harpsichord Wurlitzer electric piano
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 136
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?c ) AS ?t ) WHERE { ?c property:instrument ?w . ?w rdf:type ontology:musical_instrument . ?c rdf:type ontology:common_name } GROUP BY ?w } . FILTER ( ?t = 136 ) }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q6442361 Q1333202
P27 P17
Q15617994
USER
Which administrative territories are Simon Woods a civilian of or are Kuju, Ardabil located in ?
OR((Q1333202,P27,c(Q15617994)), (Q6442361,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q1333202
relation P27
action find
entity Q6442361
relation P17
type Q15617994
{'OR': [['Q1333202', 'P27', {'concept': 'Q15617994'}], ['Q6442361', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Q6442361 property:P17 ?b } UNION { resource:Q1333202 property:P27 ?b } } . ?b rdf:type ontology:Q15617994 }
Kuju, Ardabil Simon Woods
action filter_type
action union
action find
entity Simon Woods
relation country of citizenship
action find
entity Kuju, Ardabil
relation country
type designation for an administrative territorial entity
{'OR': [['Simon Woods', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Kuju, Ardabil', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Kuju,_Ardabil property:country ?b } UNION { resource:Simon_Woods property:country_of_citizenship ?b } } . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q145 Q794
SYSTEM
United Kingdom, Iran
Q145 Q794
OR((Q1333202,P27,c(Q15617994)), (Q6442361,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q1333202
relation P27
action find
entity Q6442361
relation P17
type Q15617994
[ANSWERS] are Simon Woods a civilian of or are Kuju, Ardabil located in
{'OR': [['Q1333202', 'P27', {'concept': 'Q15617994'}], ['Q6442361', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Q6442361 property:P17 ?b } UNION { resource:Q1333202 property:P27 ?b } } . ?b rdf:type ontology:Q15617994 }
United Kingdom Iran
United Kingdom and Iran are Simon Woods a civilian of or are Kuju, Ardabil located in
United Kingdom Iran
action filter_type
action union
action find
entity Simon Woods
relation country of citizenship
action find
entity Kuju, Ardabil
relation country
type designation for an administrative territorial entity
{'OR': [['Simon Woods', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Kuju, Ardabil', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Kuju,_Ardabil property:country ?b } UNION { resource:Simon_Woods property:country_of_citizenship ?b } } . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q24052861
P495
Q838948
USER
Did Sonita originate in those administrative territories ?
(Q24052861,P495,Q145) (Q24052861,P495,Q794)
action is_in
entity prev_answer
action find
entity Q24052861
relation P495
['Q24052861', 'P495', 'Q145'] ['Q24052861', 'P495', 'Q794']
ASK WHERE { resource:Q24052861 property:P495 ?r . VALUES ( ?r ) { ( resource:Q145 ) ( resource:Q794 ) } }
Sonita
action is_in
entity prev_answer
action find
entity Sonita
relation country of origin
['Sonita', 'country of origin', 'United Kingdom'] ['Sonita', 'country of origin', 'Iran']
ASK WHERE { resource:Sonita property:country_of_origin ?r . VALUES ( ?r ) { ( resource:United_Kingdom ) ( resource:Iran ) } }
[]
work of art
SYSTEM
NO
(Q24052861,P495,Q145) (Q24052861,P495,Q794)
action is_in
entity prev_answer
action find
entity Q24052861
relation P495
[ANSWER]
['Q24052861', 'P495', 'Q145'] ['Q24052861', 'P495', 'Q794']
ASK WHERE { resource:Q24052861 property:P495 ?r . VALUES ( ?r ) { ( resource:Q145 ) ( resource:Q794 ) } }
No
action is_in
entity prev_answer
action find
entity Sonita
relation country of origin
['Sonita', 'country of origin', 'United Kingdom'] ['Sonita', 'country of origin', 'Iran']
ASK WHERE { resource:Sonita property:country_of_origin ?r . VALUES ( ?r ) { ( resource:United_Kingdom ) ( resource:Iran ) } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q3506608 Q532064
P57
Q502895
USER
Which people directed Angel or Requiem for Methuselah ?
OR((Q532064,P57,c(Q502895)), (Q3506608,P57,c(Q502895)))
action filter_type
action union
action find
entity Q532064
relation P57
action find
entity Q3506608
relation P57
type Q502895
{'OR': [['Q532064', 'P57', {'concept': 'Q502895'}], ['Q3506608', 'P57', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?g WHERE { { VALUES ( ?u ) { ( resource:Q532064 ) ( resource:Q3506608 ) } . ?u property:P57 ?g } . ?g rdf:type ontology:Q502895 }
Requiem for Methuselah Angel
action filter_type
action union
action find
entity Angel
relation director
action find
entity Requiem for Methuselah
relation director
type common name
{'OR': [['Angel', 'director', {'concept': 'common name'}], ['Requiem for Methuselah', 'director', {'concept': 'common name'}]]}
SELECT DISTINCT ?g WHERE { { VALUES ( ?u ) { ( resource:Angel ) ( resource:Requiem_for_Methuselah ) } . ?u property:director ?g } . ?g rdf:type ontology:common_name }
[]
common name
Q266535 Q16012606
SYSTEM
François Ozon, Murray Golden
Q266535 Q16012606
OR((Q532064,P57,c(Q502895)), (Q3506608,P57,c(Q502895)))
action filter_type
action union
action find
entity Q532064
relation P57
action find
entity Q3506608
relation P57
type Q502895
[ANSWERS] directed Angel or Requiem for Methuselah
{'OR': [['Q532064', 'P57', {'concept': 'Q502895'}], ['Q3506608', 'P57', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?g WHERE { { VALUES ( ?u ) { ( resource:Q532064 ) ( resource:Q3506608 ) } . ?u property:P57 ?g } . ?g rdf:type ontology:Q502895 }
François Ozon Murray Golden
François Ozon and Murray Golden directed Angel or Requiem for Methuselah
François Ozon Murray Golden
action filter_type
action union
action find
entity Angel
relation director
action find
entity Requiem for Methuselah
relation director
type common name
{'OR': [['Angel', 'director', {'concept': 'common name'}], ['Requiem for Methuselah', 'director', {'concept': 'common name'}]]}
SELECT DISTINCT ?g WHERE { { VALUES ( ?u ) { ( resource:Angel ) ( resource:Requiem_for_Methuselah ) } . ?u property:director ?g } . ?g rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q16012606
P21
Q290
USER
Which sex does that person have ?
(Q16012606,P21,c(Q290))
action filter_type
action find
entity Q16012606
relation P21
type Q290
['Q16012606', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?w WHERE { resource:Q16012606 property:P21 ?w . ?w rdf:type ontology:Q290 }
Murray Golden
action filter_type
action find
entity Murray Golden
relation gender
type sex
['Murray Golden', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?w WHERE { resource:Murray_Golden property:gender ?w . ?w rdf:type ontology:sex }
[]
sex
Clarification for simple ques.
Q16012606
SYSTEM
Did you mean Murray Golden ?
Q266535 Q16012606
(Q266535,P21,c(Q290)) (Q16012606,P21,c(Q290))
[ANSWER]
['Q266535', 'P21', {'concept': 'Q290'}] ['Q16012606', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?w WHERE { resource:Q16012606 property:P21 ?w . ?w rdf:type ontology:Q290 }
François Ozon Murray Golden
Did you mean Murray Golden ?
Murray Golden
['François Ozon', 'gender', {'concept': 'sex'}] ['Murray Golden', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?w WHERE { resource:Murray_Golden property:gender ?w . ?w rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
USER
Yes
(Q16012606,P21,c(Q290))
['Q16012606', 'P21', {'concept': 'Q290'}]
['Murray Golden', 'gender', {'concept': 'sex'}]
[]
Q6581097
SYSTEM
male
Q6581097
(Q16012606,P21,c(Q290))
action filter_type
action find
entity Q16012606
relation P21
type Q290
That person has a [ANSWER]
['Q16012606', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?w WHERE { resource:Q16012606 property:P21 ?w . ?w rdf:type ontology:Q290 }
male
That person has a male
male
action filter_type
action find
entity Murray Golden
relation gender
type sex
['Murray Golden', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?w WHERE { resource:Murray_Golden property:gender ?w . ?w rdf:type ontology:sex }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P36
Q56061 Q486972 Q15617994
USER
Which administrative territories consists of max number of administrative territories and human settlements as their capital ?
(c(Q15617994),P36,c(Q56061)|c(Q486972))
action argmax
action union
action find_tuple_counts
relation P36
type Q15617994
type Q56061
action find_tuple_counts
relation P36
type Q15617994
type Q486972
[{'concept': 'Q15617994'}, 'P36', [{'concept': 'Q56061'}, {'concept': 'Q486972'}]]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( MAX ( ?g ) AS ?h ) { SELECT DISTINCT ?t ( COUNT ( ?r ) AS ?g ) WHERE { { ?t property:P36 ?r . ?t rdf:type ontology:Q15617994 . ?r rdf:type ontology:Q486972 } UNION { ?t property:P36 ?r . ?t rdf:type ontology:Q15617994 . ?r rdf:type ontology:Q56061 } } GROUP BY ?t } } . { SELECT DISTINCT ?d ( COUNT ( ?j ) AS ?o ) WHERE { { ?d property:P36 ?j . ?d rdf:type ontology:Q15617994 . ?j rdf:type ontology:Q56061 } UNION { ?d property:P36 ?j . ?d rdf:type ontology:Q15617994 . ?j rdf:type ontology:Q486972 } } GROUP BY ?d } . FILTER ( ?o = ?h ) }
action argmax
action union
action find_tuple_counts
relation capital
type designation for an administrative territorial entity
type administrative territorial entity
action find_tuple_counts
relation capital
type designation for an administrative territorial entity
type human settlement
[{'concept': 'designation for an administrative territorial entity'}, 'capital', [{'concept': 'administrative territorial entity'}, {'concept': 'human settlement'}]]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( MAX ( ?g ) AS ?h ) { SELECT DISTINCT ?t ( COUNT ( ?r ) AS ?g ) WHERE { { ?t property:capital ?r . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r rdf:type ontology:human_settlement } UNION { ?t property:capital ?r . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r rdf:type ontology:administrative_territorial_entity } } GROUP BY ?t } } . { SELECT DISTINCT ?d ( COUNT ( ?j ) AS ?o ) WHERE { { ?d property:capital ?j . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j rdf:type ontology:administrative_territorial_entity } UNION { ?d property:capital ?j . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j rdf:type ontology:human_settlement } } GROUP BY ?d } . FILTER ( ?o = ?h ) }
[]
administrative territorial entity human settlement designation for an administrative territorial entity
Q160307
SYSTEM
Fatimid caliphate
Q160307
(c(Q15617994),P36,c(Q56061)|c(Q486972))
action argmax
action union
action find_tuple_counts
relation P36
type Q15617994
type Q56061
action find_tuple_counts
relation P36
type Q15617994
type Q486972
[ANSWER] consists of max number of administrative territories and human settlements as their capital
[{'concept': 'Q15617994'}, 'P36', [{'concept': 'Q56061'}, {'concept': 'Q486972'}]]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( MAX ( ?g ) AS ?h ) { SELECT DISTINCT ?t ( COUNT ( ?r ) AS ?g ) WHERE { { ?t property:P36 ?r . ?t rdf:type ontology:Q15617994 . ?r rdf:type ontology:Q486972 } UNION { ?t property:P36 ?r . ?t rdf:type ontology:Q15617994 . ?r rdf:type ontology:Q56061 } } GROUP BY ?t } } . { SELECT DISTINCT ?d ( COUNT ( ?j ) AS ?o ) WHERE { { ?d property:P36 ?j . ?d rdf:type ontology:Q15617994 . ?j rdf:type ontology:Q56061 } UNION { ?d property:P36 ?j . ?d rdf:type ontology:Q15617994 . ?j rdf:type ontology:Q486972 } } GROUP BY ?d } . FILTER ( ?o = ?h ) }
Fatimid caliphate
Fatimid caliphate consists of max number of administrative territories and human settlements as their capital
Fatimid caliphate
action argmax
action union
action find_tuple_counts
relation capital
type designation for an administrative territorial entity
type administrative territorial entity
action find_tuple_counts
relation capital
type designation for an administrative territorial entity
type human settlement
[{'concept': 'designation for an administrative territorial entity'}, 'capital', [{'concept': 'administrative territorial entity'}, {'concept': 'human settlement'}]]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( MAX ( ?g ) AS ?h ) { SELECT DISTINCT ?t ( COUNT ( ?r ) AS ?g ) WHERE { { ?t property:capital ?r . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r rdf:type ontology:human_settlement } UNION { ?t property:capital ?r . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r rdf:type ontology:administrative_territorial_entity } } GROUP BY ?t } } . { SELECT DISTINCT ?d ( COUNT ( ?j ) AS ?o ) WHERE { { ?d property:capital ?j . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j rdf:type ontology:administrative_territorial_entity } UNION { ?d property:capital ?j . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j rdf:type ontology:human_settlement } } GROUP BY ?d } . FILTER ( ?o = ?h ) }
[]